From 4941e26d82e386ff1031aeb9c25eb78d40b4a88f Mon Sep 17 00:00:00 2001 From: Zsolt Fejer Date: Wed, 17 Jul 2024 15:58:35 +0100 Subject: [PATCH 1/6] azurerm_api_management add v2 skus --- .../api_management_api_data_source.go | 2 +- .../api_management_api_diagnostic_resource.go | 4 +- ...management_api_diagnostic_resource_test.go | 2 +- ...anagement_api_operation_policy_resource.go | 2 +- ...ment_api_operation_policy_resource_test.go | 2 +- .../api_management_api_operation_resource.go | 2 +- ..._management_api_operation_resource_test.go | 2 +- ...i_management_api_operation_tag_resource.go | 4 +- ...agement_api_operation_tag_resource_test.go | 2 +- .../api_management_api_policy_resource.go | 2 +- ...api_management_api_policy_resource_test.go | 2 +- .../api_management_api_release.go | 4 +- ...pi_management_api_release_resource_test.go | 2 +- .../api_management_api_resource.go | 2 +- .../api_management_api_resource_test.go | 2 +- .../api_management_api_schema_resource.go | 2 +- ...api_management_api_schema_resource_test.go | 2 +- ...management_api_tag_description_resource.go | 4 +- ...ement_api_tag_description_resource_test.go | 2 +- .../api_management_api_tag_resource.go | 6 +- .../api_management_api_tag_resource_test.go | 2 +- ..._management_api_version_set_data_source.go | 2 +- ...api_management_api_version_set_resource.go | 4 +- ...anagement_api_version_set_resource_test.go | 2 +- ...anagement_authorization_server_resource.go | 2 +- ...ment_authorization_server_resource_test.go | 2 +- .../api_management_backend_resource.go | 2 +- .../api_management_backend_resource_test.go | 2 +- .../api_management_certificate_resource.go | 2 +- ...pi_management_certificate_resource_test.go | 2 +- .../api_management_custom_domain_resource.go | 2 +- ..._management_custom_domain_resource_test.go | 2 +- .../api_management_data_source.go | 4 +- .../api_management_diagnostic_resource.go | 4 +- ...api_management_diagnostic_resource_test.go | 2 +- .../api_management_email_template_resource.go | 2 +- ...management_email_template_resource_test.go | 2 +- .../api_management_gateway_api_resource.go | 6 +- ...pi_management_gateway_api_resource_test.go | 2 +- ..._gateway_certificate_authority_resource.go | 4 +- ...way_certificate_authority_resource_test.go | 2 +- .../api_management_gateway_data_source.go | 4 +- ...way_host_name_configuration_data_source.go | 4 +- ...ateway_host_name_configuration_resource.go | 4 +- ...y_host_name_configuration_resource_test.go | 2 +- .../api_management_gateway_resource.go | 4 +- .../api_management_gateway_resource_test.go | 2 +- .../api_management_global_schema_resource.go | 2 +- ..._management_global_schema_resource_test.go | 2 +- .../api_management_group_data_source.go | 2 +- .../api_management_group_resource.go | 2 +- .../api_management_group_resource_test.go | 2 +- .../api_management_group_user_resource.go | 2 +- ...api_management_group_user_resource_test.go | 2 +- ...nagement_identity_provider_aad_resource.go | 2 +- ...ent_identity_provider_aad_resource_test.go | 2 +- ...ement_identity_provider_aadb2c_resource.go | 2 +- ..._identity_provider_aadb2c_resource_test.go | 2 +- ...ent_identity_provider_facebook_resource.go | 2 +- ...dentity_provider_facebook_resource_test.go | 2 +- ...ement_identity_provider_google_resource.go | 2 +- ..._identity_provider_google_resource_test.go | 2 +- ...nt_identity_provider_microsoft_resource.go | 2 +- ...entity_provider_microsoft_resource_test.go | 2 +- ...ment_identity_provider_twitter_resource.go | 2 +- ...identity_provider_twitter_resource_test.go | 2 +- .../api_management_logger_resource.go | 2 +- .../api_management_logger_resource_test.go | 2 +- .../api_management_named_value_resource.go | 2 +- ...pi_management_named_value_resource_test.go | 2 +- ...management_notification_recipient_email.go | 4 +- ...ement_notification_recipient_email_test.go | 2 +- ..._management_notification_recipient_user.go | 4 +- ...gement_notification_recipient_user_test.go | 2 +- ...gement_openid_connect_provider_resource.go | 2 +- ...t_openid_connect_provider_resource_test.go | 2 +- ...api_management_policy_fragment_resource.go | 4 +- ...anagement_policy_fragment_resource_test.go | 2 +- .../api_management_policy_resource.go | 4 +- .../api_management_policy_resource_test.go | 4 +- .../api_management_product_api_resource.go | 2 +- ...pi_management_product_api_resource_test.go | 2 +- .../api_management_product_data_source.go | 2 +- .../api_management_product_group_resource.go | 2 +- ..._management_product_group_resource_test.go | 2 +- .../api_management_product_policy_resource.go | 2 +- ...management_product_policy_resource_test.go | 2 +- .../api_management_product_resource.go | 2 +- .../api_management_product_resource_test.go | 2 +- .../api_management_product_tag_resource.go | 2 +- ...pi_management_product_tag_resource_test.go | 2 +- .../api_management_redis_cache_resource.go | 4 +- ...pi_management_redis_cache_resource_test.go | 2 +- .../apimanagement/api_management_resource.go | 18 +- .../api_management_resource_test.go | 6 +- .../api_management_subscription_resource.go | 6 +- ...i_management_subscription_resource_test.go | 2 +- .../api_management_tag_resource.go | 4 +- .../api_management_tag_resource_test.go | 2 +- .../api_management_user_data_source.go | 2 +- .../api_management_user_resource.go | 2 +- .../api_management_user_resource_test.go | 2 +- .../services/apimanagement/client/client.go | 94 +++--- .../apimanagement/identity_provider_import.go | 2 +- .../api_operation_policy_v1_to_v2.go | 2 +- .../migration/api_policy_v1_to_v2.go | 2 +- .../migration/api_product_policy_v1_to_v2.go | 2 +- .../apimanagement/migration/policy.go | 2 +- .../migration/policy_v2_to_v3.go | 2 +- .../apimanagement/schemaz/api_management.go | 2 +- .../validate/api_management_sku.go | 2 +- .../validate/api_management_sku_test.go | 20 ++ .../apimanagement/2022-08-01/api/README.md | 123 -------- .../2022-08-01/apioperation/README.md | 127 -------- .../2022-08-01/apioperationpolicy/README.md | 106 ------- .../2022-08-01/apipolicy/README.md | 106 ------- .../2022-08-01/apirelease/README.md | 127 -------- .../2022-08-01/apischema/README.md | 102 ------- .../2022-08-01/apiversionset/README.md | 111 ------- .../model_backendcontractproperties.go | 16 - .../model_backendupdateparameterproperties.go | 16 - .../apimanagement/2022-08-01/group/README.md | 127 -------- .../2022-08-01/namedvalue/README.md | 147 ---------- .../model_namedvaluecontractproperties.go | 12 - .../2022-08-01/policyfragment/README.md | 119 -------- .../model_policyfragmentcontractproperties.go | 10 - .../2022-08-01/product/README.md | 127 -------- .../2022-08-01/productpolicy/README.md | 106 ------- .../model_globalschemacontractproperties.go | 11 - .../2023-05-01-preview/api/README.md | 222 ++++++++++++++ .../api/client.go | 0 .../api/constants.go | 24 ++ .../api/id_api.go | 0 .../api/id_service.go | 0 .../2023-05-01-preview/api/id_workspace.go | 139 +++++++++ .../2023-05-01-preview/api/id_workspaceapi.go | 148 ++++++++++ .../api/method_createorupdate.go | 1 - .../api/method_delete.go | 24 +- .../api/method_get.go | 0 .../api/method_getentitytag.go | 0 .../api/method_listbyservice.go | 0 .../api/method_update.go | 0 .../api/method_workspaceapicreateorupdate.go | 103 +++++++ .../api/method_workspaceapidelete.go | 79 +++++ .../api/method_workspaceapiget.go | 54 ++++ .../api/method_workspaceapigetentitytag.go | 46 +++ .../api/method_workspaceapilistbyservice.go | 149 ++++++++++ .../api/method_workspaceapiupdate.go | 87 ++++++ .../api/model_apicontactinformation.go | 0 .../api/model_apicontract.go | 0 .../api/model_apicontractproperties.go | 1 + .../api/model_apicontractupdateproperties.go | 0 .../api/model_apicreateorupdateparameter.go | 0 .../api/model_apicreateorupdateproperties.go | 1 + ...apicreateorupdatepropertieswsdlselector.go | 0 .../api/model_apilicenseinformation.go | 0 .../api/model_apiupdatecontract.go | 0 .../api/model_apiversionsetcontractdetails.go | 0 .../model_authenticationsettingscontract.go | 0 ...el_oauth2authenticationsettingscontract.go | 0 ...el_openidauthenticationsettingscontract.go | 0 ...l_subscriptionkeyparameternamescontract.go | 0 .../api/predicates.go | 0 .../api/version.go | 2 +- .../apidiagnostic/README.md | 6 +- .../apidiagnostic/client.go | 0 .../apidiagnostic/constants.go | 0 .../apidiagnostic/id_api.go | 0 .../apidiagnostic/id_apidiagnostic.go | 0 .../apidiagnostic/method_createorupdate.go | 0 .../apidiagnostic/method_delete.go | 0 .../apidiagnostic/method_get.go | 0 .../apidiagnostic/method_getentitytag.go | 0 .../apidiagnostic/method_listbyservice.go | 0 .../apidiagnostic/method_update.go | 0 .../model_bodydiagnosticsettings.go | 0 .../apidiagnostic/model_datamasking.go | 0 .../apidiagnostic/model_datamaskingentity.go | 0 .../apidiagnostic/model_diagnosticcontract.go | 0 .../model_diagnosticcontractproperties.go | 0 .../model_httpmessagediagnostic.go | 0 .../model_pipelinediagnosticsettings.go | 0 .../apidiagnostic/model_samplingsettings.go | 0 .../apidiagnostic/predicates.go | 0 .../apidiagnostic/version.go | 2 +- .../apimanagementservice/README.md | 13 +- .../apimanagementservice/client.go | 0 .../apimanagementservice/constants.go | 216 ++++++++++++-- .../apimanagementservice/id_service.go | 0 ...method_applynetworkconfigurationupdates.go | 0 .../apimanagementservice/method_backup.go | 0 .../method_checknameavailability.go | 0 .../method_createorupdate.go | 0 .../apimanagementservice/method_delete.go | 0 .../apimanagementservice/method_get.go | 0 .../method_getdomainownershipidentifier.go | 0 .../method_getssotoken.go | 0 .../apimanagementservice/method_list.go | 0 .../method_listbyresourcegroup.go | 0 .../method_migratetostv2.go | 10 +- .../apimanagementservice/method_restore.go | 0 .../apimanagementservice/method_update.go | 0 .../model_additionallocation.go | 0 ...viceapplynetworkconfigurationparameters.go | 0 ...anagementservicebackuprestoreparameters.go | 0 ...tservicechecknameavailabilityparameters.go | 0 ...rvicegetdomainownershipidentifierresult.go | 0 ...l_apimanagementservicegetssotokenresult.go | 0 ...managementservicenameavailabilityresult.go | 0 .../model_apimanagementserviceproperties.go | 3 + .../model_apimanagementserviceresource.go | 0 ...model_apimanagementserviceskuproperties.go | 0 ...el_apimanagementserviceupdateparameters.go | 0 ...el_apimanagementserviceupdateproperties.go | 3 + .../model_apiversionconstraint.go | 0 .../model_armidwrapper.go | 0 .../model_certificateconfiguration.go | 0 .../model_certificateinformation.go | 0 .../model_configurationapi.go | 8 + .../model_hostnameconfiguration.go | 0 .../model_migratetostv2contract.go | 8 + ...vateendpointconnectionwrapperproperties.go | 0 ...model_privatelinkserviceconnectionstate.go | 0 ..._remoteprivateendpointconnectionwrapper.go | 0 .../model_virtualnetworkconfiguration.go | 0 .../apimanagementservice/predicates.go | 0 .../apimanagementservice/version.go | 2 +- .../2023-05-01-preview/apioperation/README.md | 234 +++++++++++++++ .../apioperation/client.go | 0 .../apioperation/id_api.go | 0 .../apioperation/id_apioperation.go | 157 ++++++++++ .../apioperation/id_operation.go | 0 .../apioperation/id_workspaceapi.go | 148 ++++++++++ .../apioperation/method_createorupdate.go | 0 .../apioperation/method_delete.go | 0 .../apioperation/method_get.go | 0 .../apioperation/method_getentitytag.go | 0 .../apioperation/method_listbyapi.go | 0 .../apioperation/method_update.go | 0 ...hod_workspaceapioperationcreateorupdate.go | 88 ++++++ .../method_workspaceapioperationdelete.go | 76 +++++ .../method_workspaceapioperationget.go | 54 ++++ ...ethod_workspaceapioperationgetentitytag.go | 46 +++ .../method_workspaceapioperationlistbyapi.go | 145 +++++++++ .../method_workspaceapioperationupdate.go | 87 ++++++ .../apioperation/model_operationcontract.go | 0 .../model_operationcontractproperties.go | 0 .../model_operationupdatecontract.go | 0 ...model_operationupdatecontractproperties.go | 0 .../apioperation/model_parametercontract.go | 0 .../model_parameterexamplecontract.go | 0 .../model_representationcontract.go | 0 .../apioperation/model_requestcontract.go | 0 .../apioperation/model_responsecontract.go | 0 .../apioperation/predicates.go | 0 .../apioperation/version.go | 2 +- .../apioperationpolicy/README.md | 192 ++++++++++++ .../apioperationpolicy/client.go | 0 .../apioperationpolicy/constants.go | 0 .../apioperationpolicy/id_apioperation.go | 157 ++++++++++ .../apioperationpolicy/id_operation.go | 0 .../method_createorupdate.go | 0 .../apioperationpolicy/method_delete.go | 0 .../apioperationpolicy/method_get.go | 0 .../apioperationpolicy/method_getentitytag.go | 0 .../method_listbyoperation.go | 0 ...rkspaceapioperationpolicycreateorupdate.go | 88 ++++++ ...ethod_workspaceapioperationpolicydelete.go | 76 +++++ .../method_workspaceapioperationpolicyget.go | 83 ++++++ ...workspaceapioperationpolicygetentitytag.go | 47 +++ ...kspaceapioperationpolicylistbyoperation.go | 105 +++++++ .../model_policycontract.go | 0 .../model_policycontractproperties.go | 0 .../apioperationpolicy/predicates.go | 0 .../apioperationpolicy/version.go | 2 +- .../apioperationtag/README.md | 6 +- .../apioperationtag/client.go | 0 .../apioperationtag/id_operation.go | 0 .../apioperationtag/id_operationtag.go | 0 .../method_tagassigntooperation.go | 0 .../method_tagdetachfromoperation.go | 0 .../method_taggetbyoperation.go | 0 .../method_taggetentitystatebyoperation.go | 0 .../method_taglistbyoperation.go | 0 .../apioperationtag/model_tagcontract.go | 0 .../model_tagcontractproperties.go | 0 .../apioperationtag/predicates.go | 0 .../apioperationtag/version.go | 2 +- .../2023-05-01-preview/apipolicy/README.md | 192 ++++++++++++ .../apipolicy/client.go | 0 .../apipolicy/constants.go | 0 .../apipolicy/id_api.go | 0 .../apipolicy/id_workspaceapi.go | 148 ++++++++++ .../apipolicy/method_createorupdate.go | 0 .../apipolicy/method_delete.go | 0 .../apipolicy/method_get.go | 0 .../apipolicy/method_getentitytag.go | 0 .../apipolicy/method_listbyapi.go | 0 ...method_workspaceapipolicycreateorupdate.go | 88 ++++++ .../method_workspaceapipolicydelete.go | 76 +++++ .../apipolicy/method_workspaceapipolicyget.go | 83 ++++++ .../method_workspaceapipolicygetentitytag.go | 47 +++ .../method_workspaceapipolicylistbyapi.go | 105 +++++++ .../apipolicy/model_policycontract.go | 0 .../model_policycontractproperties.go | 0 .../apipolicy/predicates.go | 0 .../apipolicy/version.go | 2 +- .../2023-05-01-preview/apirelease/README.md | 234 +++++++++++++++ .../apirelease/client.go | 0 .../apirelease/id_api.go | 0 .../apirelease/id_apirelease.go | 157 ++++++++++ .../apirelease/id_release.go | 0 .../apirelease/id_workspaceapi.go | 148 ++++++++++ .../apirelease/method_createorupdate.go | 0 .../apirelease/method_delete.go | 0 .../apirelease/method_get.go | 0 .../apirelease/method_getentitytag.go | 0 .../apirelease/method_listbyservice.go | 0 .../apirelease/method_update.go | 0 ...ethod_workspaceapireleasecreateorupdate.go | 88 ++++++ .../method_workspaceapireleasedelete.go | 76 +++++ .../method_workspaceapireleaseget.go | 54 ++++ .../method_workspaceapireleasegetentitytag.go | 46 +++ ...method_workspaceapireleaselistbyservice.go | 141 +++++++++ .../method_workspaceapireleaseupdate.go | 87 ++++++ .../apirelease/model_apireleasecontract.go | 0 .../model_apireleasecontractproperties.go | 0 .../apirelease/predicates.go | 0 .../apirelease/version.go | 2 +- .../2023-05-01-preview/apischema/README.md | 184 ++++++++++++ .../apischema/client.go | 0 .../apischema/id_api.go | 0 .../apischema/id_apischema.go | 0 .../apischema/id_workspaceapi.go | 148 ++++++++++ .../apischema/id_workspaceapischema.go | 157 ++++++++++ .../apischema/method_createorupdate.go | 1 - .../apischema/method_delete.go | 0 .../apischema/method_get.go | 0 .../apischema/method_getentitytag.go | 0 .../apischema/method_listbyapi.go | 0 ...method_workspaceapischemacreateorupdate.go | 103 +++++++ .../method_workspaceapischemadelete.go | 79 +++++ .../apischema/method_workspaceapischemaget.go | 54 ++++ .../method_workspaceapischemagetentitytag.go | 46 +++ .../method_workspaceapischemalistbyapi.go | 141 +++++++++ .../apischema/model_schemacontract.go | 0 .../model_schemacontractproperties.go | 5 +- .../model_schemadocumentproperties.go | 0 .../apischema/predicates.go | 0 .../apischema/version.go | 2 +- .../apitag/README.md | 6 +- .../apitag/client.go | 0 .../apitag/id_api.go | 0 .../apitag/id_apitag.go | 0 .../apitag/method_tagassigntoapi.go | 0 .../apitag/method_tagdetachfromapi.go | 0 .../apitag/method_taggetbyapi.go | 0 .../apitag/method_taggetentitystatebyapi.go | 0 .../apitag/method_taglistbyapi.go | 0 .../apitag/model_tagcontract.go | 0 .../apitag/model_tagcontractproperties.go | 0 .../apitag/predicates.go | 0 .../apitag/version.go | 2 +- .../apitagdescription/README.md | 6 +- .../apitagdescription/client.go | 0 .../apitagdescription/id_api.go | 0 .../apitagdescription/id_tagdescription.go | 0 .../method_createorupdate.go | 0 .../apitagdescription/method_delete.go | 0 .../apitagdescription/method_get.go | 0 .../apitagdescription/method_getentitytag.go | 0 .../apitagdescription/method_listbyservice.go | 0 .../model_tagdescriptionbaseproperties.go | 0 .../model_tagdescriptioncontract.go | 0 .../model_tagdescriptioncontractproperties.go | 0 .../model_tagdescriptioncreateparameters.go | 0 .../apitagdescription/predicates.go | 0 .../apitagdescription/version.go | 2 +- .../apiversionset/README.md | 202 +++++++++++++ .../apiversionset/client.go | 0 .../apiversionset/constants.go | 0 .../apiversionset/id_apiversionset.go | 0 .../apiversionset/id_service.go | 0 .../apiversionset/id_workspace.go | 139 +++++++++ .../id_workspaceapiversionset.go | 148 ++++++++++ .../apiversionset/method_createorupdate.go | 0 .../apiversionset/method_get.go | 0 .../apiversionset/method_getentitytag.go | 0 .../apiversionset/method_listbyservice.go | 0 .../apiversionset/method_update.go | 0 ...od_workspaceapiversionsetcreateorupdate.go | 88 ++++++ .../method_workspaceapiversionsetget.go | 54 ++++ ...thod_workspaceapiversionsetgetentitytag.go | 46 +++ ...hod_workspaceapiversionsetlistbyservice.go | 141 +++++++++ .../method_workspaceapiversionsetupdate.go | 87 ++++++ .../model_apiversionsetcontract.go | 0 .../model_apiversionsetcontractproperties.go | 0 .../model_apiversionsetupdateparameters.go | 0 ...apiversionsetupdateparametersproperties.go | 0 .../apiversionset/predicates.go | 0 .../apiversionset/version.go | 2 +- .../apiversionsets/client.go | 0 .../apiversionsets/id_apiversionset.go | 0 .../id_workspaceapiversionset.go | 148 ++++++++++ .../method_apiversionsetdelete.go | 0 .../method_workspaceapiversionsetdelete.go | 76 +++++ .../apiversionsets/version.go | 2 +- .../authorizationserver/README.md | 6 +- .../authorizationserver/client.go | 0 .../authorizationserver/constants.go | 0 .../id_authorizationserver.go | 0 .../authorizationserver/id_service.go | 0 .../method_createorupdate.go | 0 .../authorizationserver/method_delete.go | 0 .../authorizationserver/method_get.go | 0 .../method_getentitytag.go | 0 .../method_listbyservice.go | 0 .../authorizationserver/method_listsecrets.go | 0 .../authorizationserver/method_update.go | 0 .../model_authorizationservercontract.go | 0 ...l_authorizationservercontractproperties.go | 0 ...odel_authorizationserversecretscontract.go | 0 ...model_authorizationserverupdatecontract.go | 0 ...orizationserverupdatecontractproperties.go | 0 .../model_tokenbodyparametercontract.go | 0 .../authorizationserver/predicates.go | 0 .../authorizationserver/version.go | 2 +- .../backend/README.md | 6 +- .../backend/client.go | 0 .../backend/constants.go | 41 +++ .../backend/id_backend.go | 0 .../backend/id_service.go | 0 .../backend/method_createorupdate.go | 0 .../backend/method_delete.go | 0 .../backend/method_get.go | 0 .../backend/method_getentitytag.go | 0 .../backend/method_listbyservice.go | 0 .../backend/method_update.go | 0 ...l_backendauthorizationheadercredentials.go | 0 .../model_backendbaseparameterspool.go | 8 + .../backend/model_backendcircuitbreaker.go | 8 + .../backend/model_backendcontract.go | 0 .../model_backendcontractproperties.go | 19 ++ .../model_backendcredentialscontract.go | 0 .../backend/model_backendpoolitem.go | 8 + .../backend/model_backendproperties.go | 0 .../backend/model_backendproxycontract.go | 0 ...l_backendservicefabricclusterproperties.go | 0 .../backend/model_backendtlsproperties.go | 0 .../model_backendupdateparameterproperties.go | 19 ++ .../backend/model_backendupdateparameters.go | 0 .../model_circuitbreakerfailurecondition.go | 12 + .../backend/model_circuitbreakerrule.go | 10 + .../backend/model_failurestatuscoderange.go | 9 + .../backend/model_x509certificatename.go | 0 .../backend/predicates.go | 0 .../backend/version.go | 2 +- .../cache/README.md | 6 +- .../cache/client.go | 0 .../cache/id_cache.go | 0 .../cache/id_service.go | 0 .../cache/method_createorupdate.go | 0 .../cache/method_delete.go | 0 .../cache/method_get.go | 0 .../cache/method_getentitytag.go | 0 .../cache/method_listbyservice.go | 0 .../cache/method_update.go | 0 .../cache/model_cachecontract.go | 0 .../cache/model_cachecontractproperties.go | 0 .../cache/model_cacheupdateparameters.go | 0 .../cache/model_cacheupdateproperties.go | 0 .../cache/predicates.go | 0 .../cache/version.go | 2 +- .../certificate/README.md | 6 +- .../certificate/client.go | 0 .../certificate/id_certificate.go | 0 .../certificate/id_service.go | 0 .../certificate/method_createorupdate.go | 0 .../certificate/method_delete.go | 0 .../certificate/method_get.go | 0 .../certificate/method_getentitytag.go | 0 .../certificate/method_listbyservice.go | 0 .../certificate/method_refreshsecret.go | 0 .../certificate/model_certificatecontract.go | 0 .../model_certificatecontractproperties.go | 0 ...del_certificatecreateorupdateparameters.go | 0 ...del_certificatecreateorupdateproperties.go | 0 .../model_keyvaultcontractcreateproperties.go | 0 .../model_keyvaultcontractproperties.go | 0 ...vaultlastaccessstatuscontractproperties.go | 0 .../certificate/predicates.go | 0 .../certificate/version.go | 2 +- .../delegationsettings/README.md | 6 +- .../delegationsettings/client.go | 0 .../delegationsettings/id_service.go | 0 .../method_createorupdate.go | 0 .../delegationsettings/method_get.go | 0 .../delegationsettings/method_getentitytag.go | 0 .../delegationsettings/method_listsecrets.go | 0 .../delegationsettings/method_update.go | 0 .../model_portaldelegationsettings.go | 0 ...odel_portaldelegationsettingsproperties.go | 0 ...odel_portalsettingvalidationkeycontract.go | 0 ...egistrationdelegationsettingsproperties.go | 0 ...bscriptionsdelegationsettingsproperties.go | 0 .../delegationsettings/version.go | 2 +- .../deletedservice/README.md | 6 +- .../deletedservice/client.go | 0 .../deletedservice/id_deletedservice.go | 0 .../deletedservice/method_getbyname.go | 0 .../method_listbysubscription.go | 0 .../deletedservice/method_purge.go | 0 .../model_deletedservicecontract.go | 0 .../model_deletedservicecontractproperties.go | 0 .../deletedservice/predicates.go | 0 .../deletedservice/version.go | 2 +- .../diagnostic/README.md | 6 +- .../diagnostic/client.go | 0 .../diagnostic/constants.go | 0 .../diagnostic/id_diagnostic.go | 0 .../diagnostic/id_service.go | 0 .../diagnostic/method_createorupdate.go | 0 .../diagnostic/method_delete.go | 0 .../diagnostic/method_get.go | 0 .../diagnostic/method_getentitytag.go | 0 .../diagnostic/method_listbyservice.go | 0 .../diagnostic/method_update.go | 0 .../model_bodydiagnosticsettings.go | 0 .../diagnostic/model_datamasking.go | 0 .../diagnostic/model_datamaskingentity.go | 0 .../diagnostic/model_diagnosticcontract.go | 0 .../model_diagnosticcontractproperties.go | 0 .../diagnostic/model_httpmessagediagnostic.go | 0 .../model_pipelinediagnosticsettings.go | 0 .../diagnostic/model_samplingsettings.go | 0 .../diagnostic/predicates.go | 0 .../diagnostic/version.go | 2 +- .../emailtemplates/README.md | 6 +- .../emailtemplates/client.go | 0 .../emailtemplates/constants.go | 0 .../emailtemplates/id_template.go | 0 .../method_emailtemplatecreateorupdate.go | 0 .../method_emailtemplatedelete.go | 0 .../emailtemplates/method_emailtemplateget.go | 0 .../method_emailtemplategetentitytag.go | 0 .../method_emailtemplateupdate.go | 0 .../model_emailtemplatecontract.go | 0 .../model_emailtemplatecontractproperties.go | 0 ...ailtemplateparameterscontractproperties.go | 0 ..._emailtemplateupdateparameterproperties.go | 0 .../model_emailtemplateupdateparameters.go | 0 .../emailtemplates/version.go | 2 +- .../gateway/README.md | 6 +- .../gateway/client.go | 0 .../gateway/id_gateway.go | 0 .../gateway/id_service.go | 0 .../gateway/method_createorupdate.go | 0 .../gateway/method_delete.go | 0 .../gateway/method_get.go | 0 .../gateway/method_getentitytag.go | 0 .../gateway/method_listbyservice.go | 0 .../gateway/method_update.go | 0 .../gateway/model_gatewaycontract.go | 0 .../model_gatewaycontractproperties.go | 0 .../model_resourcelocationdatacontract.go | 0 .../gateway/predicates.go | 0 .../gateway/version.go | 2 +- .../gatewayapi/README.md | 6 +- .../gatewayapi/client.go | 0 .../gatewayapi/constants.go | 6 + .../gatewayapi/id_gateway.go | 0 .../gatewayapi/id_gatewayapi.go | 0 .../gatewayapi/method_createorupdate.go | 0 .../gatewayapi/method_delete.go | 0 .../gatewayapi/method_getentitytag.go | 0 .../gatewayapi/method_listbyservice.go | 0 .../gatewayapi/model_apicontactinformation.go | 0 .../gatewayapi/model_apicontract.go | 0 .../gatewayapi/model_apicontractproperties.go | 1 + .../gatewayapi/model_apilicenseinformation.go | 0 .../model_apiversionsetcontractdetails.go | 0 .../gatewayapi/model_associationcontract.go | 0 .../model_associationcontractproperties.go | 0 .../model_authenticationsettingscontract.go | 0 ...el_oauth2authenticationsettingscontract.go | 0 ...el_openidauthenticationsettingscontract.go | 0 ...l_subscriptionkeyparameternamescontract.go | 0 .../gatewayapi/predicates.go | 0 .../gatewayapi/version.go | 2 +- .../gatewaycertificateauthority/README.md | 6 +- .../gatewaycertificateauthority/client.go | 0 .../id_certificateauthority.go | 0 .../gatewaycertificateauthority/id_gateway.go | 0 .../method_createorupdate.go | 0 .../method_delete.go | 0 .../gatewaycertificateauthority/method_get.go | 0 .../method_getentitytag.go | 0 .../method_listbyservice.go | 0 ...del_gatewaycertificateauthoritycontract.go | 0 ...ycertificateauthoritycontractproperties.go | 0 .../gatewaycertificateauthority/predicates.go | 0 .../gatewaycertificateauthority/version.go | 2 +- .../gatewayhostnameconfiguration/README.md | 6 +- .../gatewayhostnameconfiguration/client.go | 0 .../id_gateway.go | 0 .../id_hostnameconfiguration.go | 0 .../method_createorupdate.go | 0 .../method_delete.go | 0 .../method_get.go | 0 .../method_getentitytag.go | 0 .../method_listbyservice.go | 0 ...el_gatewayhostnameconfigurationcontract.go | 0 ...hostnameconfigurationcontractproperties.go | 0 .../predicates.go | 0 .../gatewayhostnameconfiguration/version.go | 2 +- .../2023-05-01-preview/group/README.md | 234 +++++++++++++++ .../group/client.go | 0 .../group/constants.go | 0 .../group/id_group.go | 0 .../group/id_service.go | 0 .../2023-05-01-preview/group/id_workspace.go | 139 +++++++++ .../group/id_workspacegroup.go | 148 ++++++++++ .../group/method_createorupdate.go | 0 .../group/method_delete.go | 0 .../group/method_get.go | 0 .../group/method_getentitytag.go | 0 .../group/method_listbyservice.go | 0 .../group/method_update.go | 0 .../method_workspacegroupcreateorupdate.go | 88 ++++++ .../group/method_workspacegroupdelete.go | 76 +++++ .../group/method_workspacegroupget.go | 54 ++++ .../method_workspacegroupgetentitytag.go | 46 +++ .../method_workspacegrouplistbyservice.go | 141 +++++++++ .../group/method_workspacegroupupdate.go | 87 ++++++ .../group/model_groupcontract.go | 0 .../group/model_groupcontractproperties.go | 0 .../group/model_groupcreateparameters.go | 0 .../model_groupcreateparametersproperties.go | 0 .../group/model_groupupdateparameters.go | 0 .../model_groupupdateparametersproperties.go | 0 .../group/predicates.go | 0 .../group/version.go | 2 +- .../groupuser/README.md | 71 ++++- .../groupuser/client.go | 0 .../groupuser/constants.go | 0 .../groupuser/id_group.go | 0 .../groupuser/id_groupuser.go | 0 .../groupuser/id_workspacegroup.go | 148 ++++++++++ .../groupuser/id_workspacegroupuser.go | 157 ++++++++++ .../groupuser/method_checkentityexists.go | 0 .../groupuser/method_create.go | 0 .../groupuser/method_delete.go | 0 .../groupuser/method_list.go | 0 ...hod_workspacegroupusercheckentityexists.go | 46 +++ .../method_workspacegroupusercreate.go | 55 ++++ .../method_workspacegroupuserdelete.go | 47 +++ .../method_workspacegroupuserlist.go | 141 +++++++++ .../model_groupcontractproperties.go | 0 .../groupuser/model_usercontract.go | 0 .../groupuser/model_usercontractproperties.go | 0 .../groupuser/model_useridentitycontract.go | 0 .../groupuser/predicates.go | 0 .../groupuser/version.go | 2 +- .../identityprovider/README.md | 6 +- .../identityprovider/client.go | 0 .../identityprovider/constants.go | 0 .../identityprovider/id_identityprovider.go | 0 .../identityprovider/id_service.go | 0 .../identityprovider/method_createorupdate.go | 0 .../identityprovider/method_delete.go | 0 .../identityprovider/method_get.go | 0 .../identityprovider/method_getentitytag.go | 0 .../identityprovider/method_listbyservice.go | 0 .../identityprovider/method_listsecrets.go | 0 .../identityprovider/method_update.go | 0 .../model_clientsecretcontract.go | 0 .../model_identityprovidercontract.go | 0 ...odel_identityprovidercontractproperties.go | 0 .../model_identityprovidercreatecontract.go | 0 ...dentityprovidercreatecontractproperties.go | 0 .../model_identityproviderupdateparameters.go | 0 .../model_identityproviderupdateproperties.go | 0 .../identityprovider/predicates.go | 0 .../identityprovider/version.go | 2 +- .../logger/README.md | 6 +- .../logger/client.go | 0 .../logger/constants.go | 0 .../logger/id_logger.go | 0 .../logger/id_service.go | 0 .../logger/method_createorupdate.go | 0 .../logger/method_delete.go | 0 .../logger/method_get.go | 0 .../logger/method_getentitytag.go | 0 .../logger/method_listbyservice.go | 0 .../logger/method_update.go | 0 .../logger/model_loggercontract.go | 0 .../logger/model_loggercontractproperties.go | 0 .../logger/model_loggerupdatecontract.go | 0 .../logger/model_loggerupdateparameters.go | 0 .../logger/predicates.go | 0 .../logger/version.go | 2 +- .../2023-05-01-preview/namedvalue/README.md | 274 ++++++++++++++++++ .../namedvalue/client.go | 0 .../namedvalue/constants.go | 51 ++++ .../namedvalue/id_namedvalue.go | 0 .../namedvalue/id_service.go | 0 .../namedvalue/id_workspace.go | 139 +++++++++ .../namedvalue/id_workspacenamedvalue.go | 148 ++++++++++ .../namedvalue/method_createorupdate.go | 1 - .../namedvalue/method_delete.go | 0 .../namedvalue/method_get.go | 0 .../namedvalue/method_getentitytag.go | 0 .../namedvalue/method_listbyservice.go | 0 .../namedvalue/method_listvalue.go | 0 .../namedvalue/method_refreshsecret.go | 0 .../namedvalue/method_update.go | 0 ...ethod_workspacenamedvaluecreateorupdate.go | 103 +++++++ .../method_workspacenamedvaluedelete.go | 76 +++++ .../method_workspacenamedvalueget.go | 54 ++++ .../method_workspacenamedvaluegetentitytag.go | 46 +++ ...method_workspacenamedvaluelistbyservice.go | 145 +++++++++ .../method_workspacenamedvaluelistvalue.go | 55 ++++ ...method_workspacenamedvaluerefreshsecret.go | 71 +++++ .../method_workspacenamedvalueupdate.go | 103 +++++++ .../model_keyvaultcontractcreateproperties.go | 0 .../model_keyvaultcontractproperties.go | 0 ...vaultlastaccessstatuscontractproperties.go | 0 .../namedvalue/model_namedvaluecontract.go | 0 .../model_namedvaluecontractproperties.go | 13 + .../model_namedvaluecreatecontract.go | 0 ...odel_namedvaluecreatecontractproperties.go | 0 .../model_namedvaluesecretcontract.go | 0 ...del_namedvalueupdateparameterproperties.go | 0 .../model_namedvalueupdateparameters.go | 0 .../namedvalue/predicates.go | 0 .../namedvalue/version.go | 2 +- .../notificationrecipientemail/README.md | 71 ++++- .../notificationrecipientemail/client.go | 0 .../notificationrecipientemail/constants.go | 0 .../id_notification.go | 0 .../id_notificationnotification.go | 156 ++++++++++ .../id_notificationrecipientemail.go | 165 +++++++++++ .../id_recipientemail.go | 0 .../method_checkentityexists.go | 0 .../method_createorupdate.go | 0 .../method_delete.go | 0 .../method_listbynotification.go | 0 ...ficationrecipientemailcheckentityexists.go | 46 +++ ...otificationrecipientemailcreateorupdate.go | 55 ++++ ...rkspacenotificationrecipientemaildelete.go | 47 +++ ...icationrecipientemaillistbynotification.go | 105 +++++++ .../model_recipientemailcontract.go | 0 .../model_recipientemailcontractproperties.go | 0 .../notificationrecipientemail/predicates.go | 0 .../notificationrecipientemail/version.go | 2 +- .../notificationrecipientuser/README.md | 71 ++++- .../notificationrecipientuser/client.go | 0 .../notificationrecipientuser/constants.go | 0 .../id_notification.go | 0 .../id_notificationnotification.go | 156 ++++++++++ .../id_notificationrecipientuser.go | 165 +++++++++++ .../id_recipientuser.go | 0 .../method_checkentityexists.go | 0 .../method_createorupdate.go | 0 .../method_delete.go | 0 .../method_listbynotification.go | 0 ...ificationrecipientusercheckentityexists.go | 46 +++ ...notificationrecipientusercreateorupdate.go | 55 ++++ ...orkspacenotificationrecipientuserdelete.go | 47 +++ ...ficationrecipientuserlistbynotification.go | 105 +++++++ .../model_recipientusercontract.go | 0 .../model_recipientuserscontractproperties.go | 0 .../notificationrecipientuser/predicates.go | 0 .../notificationrecipientuser/version.go | 2 +- .../openidconnectprovider/README.md | 6 +- .../openidconnectprovider/client.go | 0 .../id_openidconnectprovider.go | 0 .../openidconnectprovider/id_service.go | 0 .../method_createorupdate.go | 0 .../openidconnectprovider/method_delete.go | 0 .../openidconnectprovider/method_get.go | 0 .../method_getentitytag.go | 0 .../method_listbyservice.go | 0 .../method_listsecrets.go | 0 .../openidconnectprovider/method_update.go | 0 .../model_clientsecretcontract.go | 0 .../model_openidconnectprovidercontract.go | 0 ...openidconnectprovidercontractproperties.go | 0 ...del_openidconnectproviderupdatecontract.go | 0 ...connectproviderupdatecontractproperties.go | 0 .../openidconnectprovider/predicates.go | 0 .../openidconnectprovider/version.go | 2 +- .../policy/README.md | 6 +- .../policy/client.go | 0 .../policy/constants.go | 0 .../policy/id_service.go | 0 .../policy/method_createorupdate.go | 0 .../policy/method_delete.go | 0 .../policy/method_get.go | 0 .../policy/method_getentitytag.go | 0 .../policy/method_listbyservice.go | 0 .../policy/model_policycontract.go | 0 .../policy/model_policycontractproperties.go | 0 .../policy/predicates.go | 0 .../policy/version.go | 2 +- .../policyfragment/README.md | 218 ++++++++++++++ .../policyfragment/client.go | 0 .../policyfragment/constants.go | 0 .../policyfragment/id_policyfragment.go | 0 .../policyfragment/id_service.go | 0 .../policyfragment/id_workspace.go | 139 +++++++++ .../id_workspacepolicyfragment.go | 148 ++++++++++ .../policyfragment/method_createorupdate.go | 1 - .../policyfragment/method_delete.go | 0 .../policyfragment/method_get.go | 0 .../policyfragment/method_getentitytag.go | 0 .../policyfragment/method_listbyservice.go | 0 .../policyfragment/method_listreferences.go | 0 ...d_workspacepolicyfragmentcreateorupdate.go | 103 +++++++ .../method_workspacepolicyfragmentdelete.go | 76 +++++ .../method_workspacepolicyfragmentget.go | 83 ++++++ ...hod_workspacepolicyfragmentgetentitytag.go | 46 +++ ...od_workspacepolicyfragmentlistbyservice.go | 145 +++++++++ ...d_workspacepolicyfragmentlistreferences.go | 137 +++++++++ .../model_policyfragmentcontract.go | 0 .../model_policyfragmentcontractproperties.go | 11 + .../policyfragment/model_resource.go | 0 .../policyfragment/predicates.go | 0 .../policyfragment/version.go | 2 +- .../2023-05-01-preview/product/README.md | 234 +++++++++++++++ .../product/client.go | 0 .../product/constants.go | 0 .../product/id_product.go | 0 .../product/id_service.go | 0 .../product/id_workspace.go | 139 +++++++++ .../product/id_workspaceproduct.go | 148 ++++++++++ .../product/method_createorupdate.go | 0 .../product/method_delete.go | 0 .../product/method_get.go | 0 .../product/method_getentitytag.go | 0 .../product/method_listbyservice.go | 0 .../product/method_update.go | 0 .../method_workspaceproductcreateorupdate.go | 88 ++++++ .../product/method_workspaceproductdelete.go | 79 +++++ .../product/method_workspaceproductget.go | 54 ++++ .../method_workspaceproductgetentitytag.go | 46 +++ .../method_workspaceproductlistbyservice.go | 149 ++++++++++ .../product/method_workspaceproductupdate.go | 87 ++++++ .../product/model_productcontract.go | 0 .../model_productcontractproperties.go | 0 .../product/model_productupdateparameters.go | 0 .../product/model_productupdateproperties.go | 0 .../product/predicates.go | 0 .../product/version.go | 2 +- .../productapi/README.md | 6 +- .../productapi/client.go | 0 .../productapi/constants.go | 6 + .../productapi/id_product.go | 0 .../productapi/id_productapi.go | 0 .../productapi/method_checkentityexists.go | 0 .../productapi/method_createorupdate.go | 0 .../productapi/method_delete.go | 0 .../productapi/method_listbyproduct.go | 0 .../productapi/model_apicontactinformation.go | 0 .../productapi/model_apicontract.go | 0 .../productapi/model_apicontractproperties.go | 1 + .../productapi/model_apilicenseinformation.go | 0 .../model_apiversionsetcontractdetails.go | 0 .../model_authenticationsettingscontract.go | 0 ...el_oauth2authenticationsettingscontract.go | 0 ...el_openidauthenticationsettingscontract.go | 0 ...l_subscriptionkeyparameternamescontract.go | 0 .../productapi/predicates.go | 0 .../productapi/version.go | 2 +- .../productgroup/README.md | 6 +- .../productgroup/client.go | 0 .../productgroup/constants.go | 0 .../productgroup/id_product.go | 0 .../productgroup/id_productgroup.go | 0 .../productgroup/method_checkentityexists.go | 0 .../productgroup/method_createorupdate.go | 0 .../productgroup/method_delete.go | 0 .../productgroup/method_listbyproduct.go | 0 .../productgroup/model_groupcontract.go | 0 .../model_groupcontractproperties.go | 0 .../productgroup/predicates.go | 0 .../productgroup/version.go | 2 +- .../productpolicy/README.md | 192 ++++++++++++ .../productpolicy/client.go | 0 .../productpolicy/constants.go | 0 .../productpolicy/id_product.go | 0 .../productpolicy/id_workspaceproduct.go | 148 ++++++++++ .../productpolicy/method_createorupdate.go | 0 .../productpolicy/method_delete.go | 0 .../productpolicy/method_get.go | 0 .../productpolicy/method_getentitytag.go | 0 .../productpolicy/method_listbyproduct.go | 0 ...od_workspaceproductpolicycreateorupdate.go | 88 ++++++ .../method_workspaceproductpolicydelete.go | 76 +++++ .../method_workspaceproductpolicyget.go | 83 ++++++ ...thod_workspaceproductpolicygetentitytag.go | 47 +++ ...hod_workspaceproductpolicylistbyproduct.go | 105 +++++++ .../productpolicy/model_policycontract.go | 0 .../model_policycontractproperties.go | 0 .../productpolicy/predicates.go | 0 .../productpolicy/version.go | 2 +- .../producttag/README.md | 6 +- .../producttag/client.go | 0 .../producttag/id_product.go | 0 .../producttag/id_producttag.go | 0 .../producttag/method_tagassigntoproduct.go | 0 .../producttag/method_tagdetachfromproduct.go | 0 .../producttag/method_taggetbyproduct.go | 0 .../method_taggetentitystatebyproduct.go | 0 .../producttag/method_taglistbyproduct.go | 0 .../producttag/model_tagcontract.go | 0 .../producttag/model_tagcontractproperties.go | 0 .../producttag/predicates.go | 0 .../producttag/version.go | 2 +- .../schema/README.md | 88 +++++- .../schema/client.go | 0 .../schema/constants.go | 0 .../schema/id_schema.go | 0 .../schema/id_service.go | 0 .../2023-05-01-preview/schema/id_workspace.go | 139 +++++++++ .../schema/id_workspaceschema.go | 148 ++++++++++ .../method_globalschemacreateorupdate.go | 1 - .../schema/method_globalschemadelete.go | 0 .../schema/method_globalschemaget.go | 0 .../schema/method_globalschemagetentitytag.go | 0 .../method_globalschemalistbyservice.go | 0 ...hod_workspaceglobalschemacreateorupdate.go | 103 +++++++ .../method_workspaceglobalschemadelete.go | 76 +++++ .../schema/method_workspaceglobalschemaget.go | 54 ++++ ...ethod_workspaceglobalschemagetentitytag.go | 46 +++ ...thod_workspaceglobalschemalistbyservice.go | 141 +++++++++ .../schema/model_globalschemacontract.go | 0 .../model_globalschemacontractproperties.go | 12 + .../schema/predicates.go | 0 .../schema/version.go | 2 +- .../signinsettings/README.md | 6 +- .../signinsettings/client.go | 0 .../signinsettings/id_service.go | 0 .../signinsettings/method_createorupdate.go | 0 .../signinsettings/method_get.go | 0 .../signinsettings/method_getentitytag.go | 0 .../signinsettings/method_update.go | 0 .../model_portalsigninsettingproperties.go | 0 .../model_portalsigninsettings.go | 0 .../signinsettings/version.go | 2 +- .../signupsettings/README.md | 6 +- .../signupsettings/client.go | 0 .../signupsettings/id_service.go | 0 .../signupsettings/method_createorupdate.go | 0 .../signupsettings/method_get.go | 0 .../signupsettings/method_getentitytag.go | 0 .../signupsettings/method_update.go | 0 .../model_portalsignupsettings.go | 0 .../model_portalsignupsettingsproperties.go | 0 .../model_termsofserviceproperties.go | 0 .../signupsettings/version.go | 2 +- .../subscription/README.md | 161 +++++++++- .../subscription/client.go | 0 .../subscription/constants.go | 0 .../subscription/id_service.go | 0 .../subscription/id_subscriptions2.go | 0 .../subscription/id_usersubscriptions2.go | 0 .../subscription/id_workspace.go | 139 +++++++++ .../id_workspacesubscriptions2.go | 148 ++++++++++ .../subscription/method_createorupdate.go | 0 .../subscription/method_delete.go | 0 .../subscription/method_get.go | 0 .../subscription/method_getentitytag.go | 0 .../subscription/method_list.go | 0 .../subscription/method_listsecrets.go | 0 .../method_regenerateprimarykey.go | 0 .../method_regeneratesecondarykey.go | 0 .../subscription/method_update.go | 0 .../method_usersubscriptionget.go | 0 ...hod_workspacesubscriptioncreateorupdate.go | 95 ++++++ .../method_workspacesubscriptiondelete.go | 76 +++++ .../method_workspacesubscriptionget.go | 54 ++++ ...ethod_workspacesubscriptiongetentitytag.go | 46 +++ .../method_workspacesubscriptionlist.go | 141 +++++++++ ...method_workspacesubscriptionlistsecrets.go | 55 ++++ ...rkspacesubscriptionregenerateprimarykey.go | 47 +++ ...spacesubscriptionregeneratesecondarykey.go | 47 +++ .../method_workspacesubscriptionupdate.go | 94 ++++++ .../model_subscriptioncontract.go | 0 .../model_subscriptioncontractproperties.go | 0 ...l_subscriptioncreateparameterproperties.go | 0 .../model_subscriptioncreateparameters.go | 0 .../model_subscriptionkeyscontract.go | 0 ...l_subscriptionupdateparameterproperties.go | 0 .../model_subscriptionupdateparameters.go | 0 .../subscription/predicates.go | 0 .../subscription/version.go | 2 +- .../tag/README.md | 113 +++++++- .../tag/client.go | 0 .../tag/id_service.go | 0 .../tag/id_tag.go | 0 .../2023-05-01-preview/tag/id_workspace.go | 139 +++++++++ .../2023-05-01-preview/tag/id_workspacetag.go | 148 ++++++++++ .../tag/method_createorupdate.go | 0 .../tag/method_delete.go | 0 .../tag/method_get.go | 0 .../tag/method_getentitystate.go | 0 .../tag/method_listbyservice.go | 0 .../tag/method_update.go | 0 .../tag/method_workspacetagcreateorupdate.go | 88 ++++++ .../tag/method_workspacetagdelete.go | 76 +++++ .../tag/method_workspacetagget.go | 54 ++++ .../tag/method_workspacetaggetentitystate.go | 46 +++ .../tag/method_workspacetaglistbyservice.go | 145 +++++++++ .../tag/method_workspacetagupdate.go | 87 ++++++ .../tag/model_tagcontract.go | 0 .../tag/model_tagcontractproperties.go | 0 .../tag/model_tagcreateupdateparameters.go | 0 .../tag/predicates.go | 0 .../tag/version.go | 2 +- .../tenantaccess/README.md | 6 +- .../tenantaccess/client.go | 0 .../tenantaccess/constants.go | 0 .../tenantaccess/id_access.go | 0 .../tenantaccess/id_service.go | 0 .../tenantaccess/method_create.go | 0 .../tenantaccess/method_get.go | 0 .../tenantaccess/method_getentitytag.go | 0 .../tenantaccess/method_listbyservice.go | 0 .../tenantaccess/method_listsecrets.go | 0 .../method_regenerateprimarykey.go | 0 .../method_regeneratesecondarykey.go | 0 .../tenantaccess/method_update.go | 0 .../model_accessinformationcontract.go | 0 ...del_accessinformationcontractproperties.go | 0 ...essinformationcreateparameterproperties.go | 0 ...model_accessinformationcreateparameters.go | 0 .../model_accessinformationsecretscontract.go | 0 ...essinformationupdateparameterproperties.go | 0 ...model_accessinformationupdateparameters.go | 0 .../tenantaccess/predicates.go | 0 .../tenantaccess/version.go | 2 +- .../user/README.md | 12 +- .../user/client.go | 0 .../user/constants.go | 0 .../user/id_service.go | 0 .../user/id_user.go | 0 .../user/method_createorupdate.go | 0 .../user/method_delete.go | 24 +- .../user/method_get.go | 0 .../user/method_getentitytag.go | 0 .../user/method_listbyservice.go | 0 .../user/method_update.go | 0 .../user/model_groupcontractproperties.go | 0 .../user/model_usercontract.go | 0 .../user/model_usercontractproperties.go | 0 .../model_usercreateparameterproperties.go | 0 .../user/model_usercreateparameters.go | 0 .../user/model_useridentitycontract.go | 0 .../user/model_userupdateparameters.go | 0 .../model_userupdateparametersproperties.go | 0 .../user/predicates.go | 0 .../user/version.go | 2 +- vendor/modules.txt | 94 +++--- 1064 files changed, 17369 insertions(+), 1919 deletions(-) delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api/README.md delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperation/README.md delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationpolicy/README.md delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apipolicy/README.md delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apirelease/README.md delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apischema/README.md delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apiversionset/README.md delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/backend/model_backendcontractproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/backend/model_backendupdateparameterproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/group/README.md delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/namedvalue/README.md delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/namedvalue/model_namedvaluecontractproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policyfragment/README.md delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policyfragment/model_policyfragmentcontractproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/product/README.md delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productpolicy/README.md delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/schema/model_globalschemacontractproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/README.md rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/api/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/api/constants.go (90%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/api/id_api.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/api/id_service.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/id_workspace.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/id_workspaceapi.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/api/method_createorupdate.go (99%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/api/method_delete.go (71%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/api/method_get.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/api/method_getentitytag.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/api/method_listbyservice.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/api/method_update.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/method_workspaceapicreateorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/method_workspaceapidelete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/method_workspaceapiget.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/method_workspaceapigetentitytag.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/method_workspaceapilistbyservice.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/method_workspaceapiupdate.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/api/model_apicontactinformation.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/api/model_apicontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/api/model_apicontractproperties.go (95%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/api/model_apicontractupdateproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/api/model_apicreateorupdateparameter.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/api/model_apicreateorupdateproperties.go (96%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/api/model_apicreateorupdatepropertieswsdlselector.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/api/model_apilicenseinformation.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/api/model_apiupdatecontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/api/model_apiversionsetcontractdetails.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/api/model_authenticationsettingscontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/api/model_oauth2authenticationsettingscontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/api/model_openidauthenticationsettingscontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/api/model_subscriptionkeyparameternamescontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/api/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/api/version.go (85%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apidiagnostic/README.md (95%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apidiagnostic/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apidiagnostic/constants.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apidiagnostic/id_api.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apidiagnostic/id_apidiagnostic.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apidiagnostic/method_createorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apidiagnostic/method_delete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apidiagnostic/method_get.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apidiagnostic/method_getentitytag.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apidiagnostic/method_listbyservice.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apidiagnostic/method_update.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apidiagnostic/model_bodydiagnosticsettings.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apidiagnostic/model_datamasking.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apidiagnostic/model_datamaskingentity.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apidiagnostic/model_diagnosticcontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apidiagnostic/model_diagnosticcontractproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apidiagnostic/model_httpmessagediagnostic.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apidiagnostic/model_pipelinediagnosticsettings.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apidiagnostic/model_samplingsettings.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apidiagnostic/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apidiagnostic/version.go (86%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apimanagementservice/README.md (94%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apimanagementservice/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apimanagementservice/constants.go (71%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apimanagementservice/id_service.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apimanagementservice/method_applynetworkconfigurationupdates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apimanagementservice/method_backup.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apimanagementservice/method_checknameavailability.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apimanagementservice/method_createorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apimanagementservice/method_delete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apimanagementservice/method_get.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apimanagementservice/method_getdomainownershipidentifier.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apimanagementservice/method_getssotoken.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apimanagementservice/method_list.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apimanagementservice/method_listbyresourcegroup.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apimanagementservice/method_migratetostv2.go (86%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apimanagementservice/method_restore.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apimanagementservice/method_update.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apimanagementservice/model_additionallocation.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apimanagementservice/model_apimanagementserviceapplynetworkconfigurationparameters.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apimanagementservice/model_apimanagementservicebackuprestoreparameters.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apimanagementservice/model_apimanagementservicechecknameavailabilityparameters.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apimanagementservice/model_apimanagementservicegetdomainownershipidentifierresult.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apimanagementservice/model_apimanagementservicegetssotokenresult.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apimanagementservice/model_apimanagementservicenameavailabilityresult.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apimanagementservice/model_apimanagementserviceproperties.go (92%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apimanagementservice/model_apimanagementserviceresource.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apimanagementservice/model_apimanagementserviceskuproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apimanagementservice/model_apimanagementserviceupdateparameters.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apimanagementservice/model_apimanagementserviceupdateproperties.go (92%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apimanagementservice/model_apiversionconstraint.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apimanagementservice/model_armidwrapper.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apimanagementservice/model_certificateconfiguration.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apimanagementservice/model_certificateinformation.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/model_configurationapi.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apimanagementservice/model_hostnameconfiguration.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/model_migratetostv2contract.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apimanagementservice/model_privateendpointconnectionwrapperproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apimanagementservice/model_privatelinkserviceconnectionstate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apimanagementservice/model_remoteprivateendpointconnectionwrapper.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apimanagementservice/model_virtualnetworkconfiguration.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apimanagementservice/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apimanagementservice/version.go (87%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/README.md rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apioperation/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apioperation/id_api.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/id_apioperation.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apioperation/id_operation.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/id_workspaceapi.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apioperation/method_createorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apioperation/method_delete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apioperation/method_get.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apioperation/method_getentitytag.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apioperation/method_listbyapi.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apioperation/method_update.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/method_workspaceapioperationcreateorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/method_workspaceapioperationdelete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/method_workspaceapioperationget.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/method_workspaceapioperationgetentitytag.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/method_workspaceapioperationlistbyapi.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/method_workspaceapioperationupdate.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apioperation/model_operationcontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apioperation/model_operationcontractproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apioperation/model_operationupdatecontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apioperation/model_operationupdatecontractproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apioperation/model_parametercontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apioperation/model_parameterexamplecontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apioperation/model_representationcontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apioperation/model_requestcontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apioperation/model_responsecontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apioperation/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apioperation/version.go (86%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/README.md rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apioperationpolicy/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apioperationpolicy/constants.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/id_apioperation.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apioperationpolicy/id_operation.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apioperationpolicy/method_createorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apioperationpolicy/method_delete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apioperationpolicy/method_get.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apioperationpolicy/method_getentitytag.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apioperationpolicy/method_listbyoperation.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/method_workspaceapioperationpolicycreateorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/method_workspaceapioperationpolicydelete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/method_workspaceapioperationpolicyget.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/method_workspaceapioperationpolicygetentitytag.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/method_workspaceapioperationpolicylistbyoperation.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apioperationpolicy/model_policycontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apioperationpolicy/model_policycontractproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apioperationpolicy/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apioperationpolicy/version.go (87%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apioperationtag/README.md (94%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apioperationtag/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apioperationtag/id_operation.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apioperationtag/id_operationtag.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apioperationtag/method_tagassigntooperation.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apioperationtag/method_tagdetachfromoperation.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apioperationtag/method_taggetbyoperation.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apioperationtag/method_taggetentitystatebyoperation.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apioperationtag/method_taglistbyoperation.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apioperationtag/model_tagcontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apioperationtag/model_tagcontractproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apioperationtag/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apioperationtag/version.go (86%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apipolicy/README.md rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apipolicy/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apipolicy/constants.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apipolicy/id_api.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apipolicy/id_workspaceapi.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apipolicy/method_createorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apipolicy/method_delete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apipolicy/method_get.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apipolicy/method_getentitytag.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apipolicy/method_listbyapi.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apipolicy/method_workspaceapipolicycreateorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apipolicy/method_workspaceapipolicydelete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apipolicy/method_workspaceapipolicyget.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apipolicy/method_workspaceapipolicygetentitytag.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apipolicy/method_workspaceapipolicylistbyapi.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apipolicy/model_policycontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apipolicy/model_policycontractproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apipolicy/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apipolicy/version.go (86%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/README.md rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apirelease/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apirelease/id_api.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/id_apirelease.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apirelease/id_release.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/id_workspaceapi.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apirelease/method_createorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apirelease/method_delete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apirelease/method_get.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apirelease/method_getentitytag.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apirelease/method_listbyservice.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apirelease/method_update.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/method_workspaceapireleasecreateorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/method_workspaceapireleasedelete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/method_workspaceapireleaseget.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/method_workspaceapireleasegetentitytag.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/method_workspaceapireleaselistbyservice.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/method_workspaceapireleaseupdate.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apirelease/model_apireleasecontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apirelease/model_apireleasecontractproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apirelease/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apirelease/version.go (86%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/README.md rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apischema/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apischema/id_api.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apischema/id_apischema.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/id_workspaceapi.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/id_workspaceapischema.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apischema/method_createorupdate.go (99%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apischema/method_delete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apischema/method_get.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apischema/method_getentitytag.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apischema/method_listbyapi.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/method_workspaceapischemacreateorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/method_workspaceapischemadelete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/method_workspaceapischemaget.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/method_workspaceapischemagetentitytag.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/method_workspaceapischemalistbyapi.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apischema/model_schemacontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apischema/model_schemacontractproperties.go (51%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apischema/model_schemadocumentproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apischema/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apischema/version.go (86%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apitag/README.md (94%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apitag/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apitag/id_api.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apitag/id_apitag.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apitag/method_tagassigntoapi.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apitag/method_tagdetachfromapi.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apitag/method_taggetbyapi.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apitag/method_taggetentitystatebyapi.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apitag/method_taglistbyapi.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apitag/model_tagcontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apitag/model_tagcontractproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apitag/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apitag/version.go (86%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apitagdescription/README.md (94%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apitagdescription/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apitagdescription/id_api.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apitagdescription/id_tagdescription.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apitagdescription/method_createorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apitagdescription/method_delete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apitagdescription/method_get.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apitagdescription/method_getentitytag.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apitagdescription/method_listbyservice.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apitagdescription/model_tagdescriptionbaseproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apitagdescription/model_tagdescriptioncontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apitagdescription/model_tagdescriptioncontractproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apitagdescription/model_tagdescriptioncreateparameters.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apitagdescription/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apitagdescription/version.go (86%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/README.md rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apiversionset/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apiversionset/constants.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apiversionset/id_apiversionset.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apiversionset/id_service.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/id_workspace.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/id_workspaceapiversionset.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apiversionset/method_createorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apiversionset/method_get.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apiversionset/method_getentitytag.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apiversionset/method_listbyservice.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apiversionset/method_update.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/method_workspaceapiversionsetcreateorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/method_workspaceapiversionsetget.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/method_workspaceapiversionsetgetentitytag.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/method_workspaceapiversionsetlistbyservice.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/method_workspaceapiversionsetupdate.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apiversionset/model_apiversionsetcontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apiversionset/model_apiversionsetcontractproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apiversionset/model_apiversionsetupdateparameters.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apiversionset/model_apiversionsetupdateparametersproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apiversionset/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apiversionset/version.go (86%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apiversionsets/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apiversionsets/id_apiversionset.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionsets/id_workspaceapiversionset.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apiversionsets/method_apiversionsetdelete.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionsets/method_workspaceapiversionsetdelete.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/apiversionsets/version.go (86%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/authorizationserver/README.md (95%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/authorizationserver/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/authorizationserver/constants.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/authorizationserver/id_authorizationserver.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/authorizationserver/id_service.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/authorizationserver/method_createorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/authorizationserver/method_delete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/authorizationserver/method_get.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/authorizationserver/method_getentitytag.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/authorizationserver/method_listbyservice.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/authorizationserver/method_listsecrets.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/authorizationserver/method_update.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/authorizationserver/model_authorizationservercontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/authorizationserver/model_authorizationservercontractproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/authorizationserver/model_authorizationserversecretscontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/authorizationserver/model_authorizationserverupdatecontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/authorizationserver/model_authorizationserverupdatecontractproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/authorizationserver/model_tokenbodyparametercontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/authorizationserver/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/authorizationserver/version.go (87%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/backend/README.md (95%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/backend/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/backend/constants.go (56%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/backend/id_backend.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/backend/id_service.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/backend/method_createorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/backend/method_delete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/backend/method_get.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/backend/method_getentitytag.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/backend/method_listbyservice.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/backend/method_update.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/backend/model_backendauthorizationheadercredentials.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/model_backendbaseparameterspool.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/model_backendcircuitbreaker.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/backend/model_backendcontract.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/model_backendcontractproperties.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/backend/model_backendcredentialscontract.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/model_backendpoolitem.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/backend/model_backendproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/backend/model_backendproxycontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/backend/model_backendservicefabricclusterproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/backend/model_backendtlsproperties.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/model_backendupdateparameterproperties.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/backend/model_backendupdateparameters.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/model_circuitbreakerfailurecondition.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/model_circuitbreakerrule.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/model_failurestatuscoderange.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/backend/model_x509certificatename.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/backend/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/backend/version.go (86%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/cache/README.md (95%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/cache/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/cache/id_cache.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/cache/id_service.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/cache/method_createorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/cache/method_delete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/cache/method_get.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/cache/method_getentitytag.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/cache/method_listbyservice.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/cache/method_update.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/cache/model_cachecontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/cache/model_cachecontractproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/cache/model_cacheupdateparameters.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/cache/model_cacheupdateproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/cache/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/cache/version.go (86%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/certificate/README.md (95%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/certificate/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/certificate/id_certificate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/certificate/id_service.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/certificate/method_createorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/certificate/method_delete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/certificate/method_get.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/certificate/method_getentitytag.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/certificate/method_listbyservice.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/certificate/method_refreshsecret.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/certificate/model_certificatecontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/certificate/model_certificatecontractproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/certificate/model_certificatecreateorupdateparameters.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/certificate/model_certificatecreateorupdateproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/certificate/model_keyvaultcontractcreateproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/certificate/model_keyvaultcontractproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/certificate/model_keyvaultlastaccessstatuscontractproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/certificate/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/certificate/version.go (86%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/delegationsettings/README.md (93%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/delegationsettings/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/delegationsettings/id_service.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/delegationsettings/method_createorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/delegationsettings/method_get.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/delegationsettings/method_getentitytag.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/delegationsettings/method_listsecrets.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/delegationsettings/method_update.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/delegationsettings/model_portaldelegationsettings.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/delegationsettings/model_portaldelegationsettingsproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/delegationsettings/model_portalsettingvalidationkeycontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/delegationsettings/model_registrationdelegationsettingsproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/delegationsettings/model_subscriptionsdelegationsettingsproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/delegationsettings/version.go (87%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/deletedservice/README.md (90%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/deletedservice/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/deletedservice/id_deletedservice.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/deletedservice/method_getbyname.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/deletedservice/method_listbysubscription.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/deletedservice/method_purge.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/deletedservice/model_deletedservicecontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/deletedservice/model_deletedservicecontractproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/deletedservice/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/deletedservice/version.go (86%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/diagnostic/README.md (95%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/diagnostic/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/diagnostic/constants.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/diagnostic/id_diagnostic.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/diagnostic/id_service.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/diagnostic/method_createorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/diagnostic/method_delete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/diagnostic/method_get.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/diagnostic/method_getentitytag.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/diagnostic/method_listbyservice.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/diagnostic/method_update.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/diagnostic/model_bodydiagnosticsettings.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/diagnostic/model_datamasking.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/diagnostic/model_datamaskingentity.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/diagnostic/model_diagnosticcontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/diagnostic/model_diagnosticcontractproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/diagnostic/model_httpmessagediagnostic.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/diagnostic/model_pipelinediagnosticsettings.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/diagnostic/model_samplingsettings.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/diagnostic/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/diagnostic/version.go (86%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/emailtemplates/README.md (94%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/emailtemplates/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/emailtemplates/constants.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/emailtemplates/id_template.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/emailtemplates/method_emailtemplatecreateorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/emailtemplates/method_emailtemplatedelete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/emailtemplates/method_emailtemplateget.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/emailtemplates/method_emailtemplategetentitytag.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/emailtemplates/method_emailtemplateupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/emailtemplates/model_emailtemplatecontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/emailtemplates/model_emailtemplatecontractproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/emailtemplates/model_emailtemplateparameterscontractproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/emailtemplates/model_emailtemplateupdateparameterproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/emailtemplates/model_emailtemplateupdateparameters.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/emailtemplates/version.go (86%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/gateway/README.md (95%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/gateway/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/gateway/id_gateway.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/gateway/id_service.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/gateway/method_createorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/gateway/method_delete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/gateway/method_get.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/gateway/method_getentitytag.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/gateway/method_listbyservice.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/gateway/method_update.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/gateway/model_gatewaycontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/gateway/model_gatewaycontractproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/gateway/model_resourcelocationdatacontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/gateway/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/gateway/version.go (86%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/gatewayapi/README.md (93%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/gatewayapi/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/gatewayapi/constants.go (96%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/gatewayapi/id_gateway.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/gatewayapi/id_gatewayapi.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/gatewayapi/method_createorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/gatewayapi/method_delete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/gatewayapi/method_getentitytag.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/gatewayapi/method_listbyservice.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/gatewayapi/model_apicontactinformation.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/gatewayapi/model_apicontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/gatewayapi/model_apicontractproperties.go (95%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/gatewayapi/model_apilicenseinformation.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/gatewayapi/model_apiversionsetcontractdetails.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/gatewayapi/model_associationcontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/gatewayapi/model_associationcontractproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/gatewayapi/model_authenticationsettingscontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/gatewayapi/model_oauth2authenticationsettingscontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/gatewayapi/model_openidauthenticationsettingscontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/gatewayapi/model_subscriptionkeyparameternamescontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/gatewayapi/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/gatewayapi/version.go (86%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/gatewaycertificateauthority/README.md (95%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/gatewaycertificateauthority/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/gatewaycertificateauthority/id_certificateauthority.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/gatewaycertificateauthority/id_gateway.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/gatewaycertificateauthority/method_createorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/gatewaycertificateauthority/method_delete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/gatewaycertificateauthority/method_get.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/gatewaycertificateauthority/method_getentitytag.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/gatewaycertificateauthority/method_listbyservice.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/gatewaycertificateauthority/model_gatewaycertificateauthoritycontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/gatewaycertificateauthority/model_gatewaycertificateauthoritycontractproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/gatewaycertificateauthority/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/gatewaycertificateauthority/version.go (87%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/gatewayhostnameconfiguration/README.md (95%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/gatewayhostnameconfiguration/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/gatewayhostnameconfiguration/id_gateway.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/gatewayhostnameconfiguration/id_hostnameconfiguration.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/gatewayhostnameconfiguration/method_createorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/gatewayhostnameconfiguration/method_delete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/gatewayhostnameconfiguration/method_get.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/gatewayhostnameconfiguration/method_getentitytag.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/gatewayhostnameconfiguration/method_listbyservice.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/gatewayhostnameconfiguration/model_gatewayhostnameconfigurationcontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/gatewayhostnameconfiguration/model_gatewayhostnameconfigurationcontractproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/gatewayhostnameconfiguration/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/gatewayhostnameconfiguration/version.go (87%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/README.md rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/group/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/group/constants.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/group/id_group.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/group/id_service.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/id_workspace.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/id_workspacegroup.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/group/method_createorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/group/method_delete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/group/method_get.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/group/method_getentitytag.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/group/method_listbyservice.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/group/method_update.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/method_workspacegroupcreateorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/method_workspacegroupdelete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/method_workspacegroupget.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/method_workspacegroupgetentitytag.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/method_workspacegrouplistbyservice.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/method_workspacegroupupdate.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/group/model_groupcontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/group/model_groupcontractproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/group/model_groupcreateparameters.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/group/model_groupcreateparametersproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/group/model_groupupdateparameters.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/group/model_groupupdateparametersproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/group/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/group/version.go (86%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/groupuser/README.md (50%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/groupuser/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/groupuser/constants.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/groupuser/id_group.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/groupuser/id_groupuser.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser/id_workspacegroup.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser/id_workspacegroupuser.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/groupuser/method_checkentityexists.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/groupuser/method_create.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/groupuser/method_delete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/groupuser/method_list.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser/method_workspacegroupusercheckentityexists.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser/method_workspacegroupusercreate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser/method_workspacegroupuserdelete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser/method_workspacegroupuserlist.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/groupuser/model_groupcontractproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/groupuser/model_usercontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/groupuser/model_usercontractproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/groupuser/model_useridentitycontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/groupuser/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/groupuser/version.go (86%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/identityprovider/README.md (95%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/identityprovider/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/identityprovider/constants.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/identityprovider/id_identityprovider.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/identityprovider/id_service.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/identityprovider/method_createorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/identityprovider/method_delete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/identityprovider/method_get.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/identityprovider/method_getentitytag.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/identityprovider/method_listbyservice.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/identityprovider/method_listsecrets.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/identityprovider/method_update.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/identityprovider/model_clientsecretcontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/identityprovider/model_identityprovidercontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/identityprovider/model_identityprovidercontractproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/identityprovider/model_identityprovidercreatecontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/identityprovider/model_identityprovidercreatecontractproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/identityprovider/model_identityproviderupdateparameters.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/identityprovider/model_identityproviderupdateproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/identityprovider/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/identityprovider/version.go (86%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/logger/README.md (95%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/logger/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/logger/constants.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/logger/id_logger.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/logger/id_service.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/logger/method_createorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/logger/method_delete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/logger/method_get.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/logger/method_getentitytag.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/logger/method_listbyservice.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/logger/method_update.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/logger/model_loggercontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/logger/model_loggercontractproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/logger/model_loggerupdatecontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/logger/model_loggerupdateparameters.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/logger/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/logger/version.go (86%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/README.md rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/namedvalue/client.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/constants.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/namedvalue/id_namedvalue.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/namedvalue/id_service.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/id_workspace.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/id_workspacenamedvalue.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/namedvalue/method_createorupdate.go (99%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/namedvalue/method_delete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/namedvalue/method_get.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/namedvalue/method_getentitytag.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/namedvalue/method_listbyservice.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/namedvalue/method_listvalue.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/namedvalue/method_refreshsecret.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/namedvalue/method_update.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_workspacenamedvaluecreateorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_workspacenamedvaluedelete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_workspacenamedvalueget.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_workspacenamedvaluegetentitytag.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_workspacenamedvaluelistbyservice.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_workspacenamedvaluelistvalue.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_workspacenamedvaluerefreshsecret.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_workspacenamedvalueupdate.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/namedvalue/model_keyvaultcontractcreateproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/namedvalue/model_keyvaultcontractproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/namedvalue/model_keyvaultlastaccessstatuscontractproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/namedvalue/model_namedvaluecontract.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/model_namedvaluecontractproperties.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/namedvalue/model_namedvaluecreatecontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/namedvalue/model_namedvaluecreatecontractproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/namedvalue/model_namedvaluesecretcontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/namedvalue/model_namedvalueupdateparameterproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/namedvalue/model_namedvalueupdateparameters.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/namedvalue/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/namedvalue/version.go (86%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/notificationrecipientemail/README.md (50%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/notificationrecipientemail/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/notificationrecipientemail/constants.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/notificationrecipientemail/id_notification.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail/id_notificationnotification.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail/id_notificationrecipientemail.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/notificationrecipientemail/id_recipientemail.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/notificationrecipientemail/method_checkentityexists.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/notificationrecipientemail/method_createorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/notificationrecipientemail/method_delete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/notificationrecipientemail/method_listbynotification.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail/method_workspacenotificationrecipientemailcheckentityexists.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail/method_workspacenotificationrecipientemailcreateorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail/method_workspacenotificationrecipientemaildelete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail/method_workspacenotificationrecipientemaillistbynotification.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/notificationrecipientemail/model_recipientemailcontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/notificationrecipientemail/model_recipientemailcontractproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/notificationrecipientemail/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/notificationrecipientemail/version.go (87%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/notificationrecipientuser/README.md (50%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/notificationrecipientuser/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/notificationrecipientuser/constants.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/notificationrecipientuser/id_notification.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser/id_notificationnotification.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser/id_notificationrecipientuser.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/notificationrecipientuser/id_recipientuser.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/notificationrecipientuser/method_checkentityexists.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/notificationrecipientuser/method_createorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/notificationrecipientuser/method_delete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/notificationrecipientuser/method_listbynotification.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser/method_workspacenotificationrecipientusercheckentityexists.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser/method_workspacenotificationrecipientusercreateorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser/method_workspacenotificationrecipientuserdelete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser/method_workspacenotificationrecipientuserlistbynotification.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/notificationrecipientuser/model_recipientusercontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/notificationrecipientuser/model_recipientuserscontractproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/notificationrecipientuser/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/notificationrecipientuser/version.go (87%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/openidconnectprovider/README.md (96%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/openidconnectprovider/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/openidconnectprovider/id_openidconnectprovider.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/openidconnectprovider/id_service.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/openidconnectprovider/method_createorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/openidconnectprovider/method_delete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/openidconnectprovider/method_get.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/openidconnectprovider/method_getentitytag.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/openidconnectprovider/method_listbyservice.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/openidconnectprovider/method_listsecrets.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/openidconnectprovider/method_update.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/openidconnectprovider/model_clientsecretcontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/openidconnectprovider/model_openidconnectprovidercontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/openidconnectprovider/model_openidconnectprovidercontractproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/openidconnectprovider/model_openidconnectproviderupdatecontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/openidconnectprovider/model_openidconnectproviderupdatecontractproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/openidconnectprovider/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/openidconnectprovider/version.go (87%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/policy/README.md (94%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/policy/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/policy/constants.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/policy/id_service.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/policy/method_createorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/policy/method_delete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/policy/method_get.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/policy/method_getentitytag.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/policy/method_listbyservice.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/policy/model_policycontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/policy/model_policycontractproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/policy/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/policy/version.go (86%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/README.md rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/policyfragment/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/policyfragment/constants.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/policyfragment/id_policyfragment.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/policyfragment/id_service.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/id_workspace.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/id_workspacepolicyfragment.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/policyfragment/method_createorupdate.go (99%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/policyfragment/method_delete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/policyfragment/method_get.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/policyfragment/method_getentitytag.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/policyfragment/method_listbyservice.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/policyfragment/method_listreferences.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/method_workspacepolicyfragmentcreateorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/method_workspacepolicyfragmentdelete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/method_workspacepolicyfragmentget.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/method_workspacepolicyfragmentgetentitytag.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/method_workspacepolicyfragmentlistbyservice.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/method_workspacepolicyfragmentlistreferences.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/policyfragment/model_policyfragmentcontract.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/model_policyfragmentcontractproperties.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/policyfragment/model_resource.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/policyfragment/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/policyfragment/version.go (86%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/README.md rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/product/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/product/constants.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/product/id_product.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/product/id_service.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/id_workspace.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/id_workspaceproduct.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/product/method_createorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/product/method_delete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/product/method_get.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/product/method_getentitytag.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/product/method_listbyservice.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/product/method_update.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/method_workspaceproductcreateorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/method_workspaceproductdelete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/method_workspaceproductget.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/method_workspaceproductgetentitytag.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/method_workspaceproductlistbyservice.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/method_workspaceproductupdate.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/product/model_productcontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/product/model_productcontractproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/product/model_productupdateparameters.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/product/model_productupdateproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/product/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/product/version.go (86%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/productapi/README.md (93%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/productapi/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/productapi/constants.go (96%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/productapi/id_product.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/productapi/id_productapi.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/productapi/method_checkentityexists.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/productapi/method_createorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/productapi/method_delete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/productapi/method_listbyproduct.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/productapi/model_apicontactinformation.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/productapi/model_apicontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/productapi/model_apicontractproperties.go (95%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/productapi/model_apilicenseinformation.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/productapi/model_apiversionsetcontractdetails.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/productapi/model_authenticationsettingscontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/productapi/model_oauth2authenticationsettingscontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/productapi/model_openidauthenticationsettingscontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/productapi/model_subscriptionkeyparameternamescontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/productapi/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/productapi/version.go (86%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/productgroup/README.md (93%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/productgroup/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/productgroup/constants.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/productgroup/id_product.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/productgroup/id_productgroup.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/productgroup/method_checkentityexists.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/productgroup/method_createorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/productgroup/method_delete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/productgroup/method_listbyproduct.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/productgroup/model_groupcontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/productgroup/model_groupcontractproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/productgroup/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/productgroup/version.go (86%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productpolicy/README.md rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/productpolicy/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/productpolicy/constants.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/productpolicy/id_product.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productpolicy/id_workspaceproduct.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/productpolicy/method_createorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/productpolicy/method_delete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/productpolicy/method_get.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/productpolicy/method_getentitytag.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/productpolicy/method_listbyproduct.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productpolicy/method_workspaceproductpolicycreateorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productpolicy/method_workspaceproductpolicydelete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productpolicy/method_workspaceproductpolicyget.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productpolicy/method_workspaceproductpolicygetentitytag.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productpolicy/method_workspaceproductpolicylistbyproduct.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/productpolicy/model_policycontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/productpolicy/model_policycontractproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/productpolicy/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/productpolicy/version.go (86%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/producttag/README.md (94%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/producttag/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/producttag/id_product.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/producttag/id_producttag.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/producttag/method_tagassigntoproduct.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/producttag/method_tagdetachfromproduct.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/producttag/method_taggetbyproduct.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/producttag/method_taggetentitystatebyproduct.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/producttag/method_taglistbyproduct.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/producttag/model_tagcontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/producttag/model_tagcontractproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/producttag/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/producttag/version.go (86%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/schema/README.md (51%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/schema/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/schema/constants.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/schema/id_schema.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/schema/id_service.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/id_workspace.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/id_workspaceschema.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/schema/method_globalschemacreateorupdate.go (99%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/schema/method_globalschemadelete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/schema/method_globalschemaget.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/schema/method_globalschemagetentitytag.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/schema/method_globalschemalistbyservice.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/method_workspaceglobalschemacreateorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/method_workspaceglobalschemadelete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/method_workspaceglobalschemaget.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/method_workspaceglobalschemagetentitytag.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/method_workspaceglobalschemalistbyservice.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/schema/model_globalschemacontract.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/model_globalschemacontractproperties.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/schema/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/schema/version.go (86%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/signinsettings/README.md (92%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/signinsettings/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/signinsettings/id_service.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/signinsettings/method_createorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/signinsettings/method_get.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/signinsettings/method_getentitytag.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/signinsettings/method_update.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/signinsettings/model_portalsigninsettingproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/signinsettings/model_portalsigninsettings.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/signinsettings/version.go (86%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/signupsettings/README.md (92%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/signupsettings/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/signupsettings/id_service.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/signupsettings/method_createorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/signupsettings/method_get.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/signupsettings/method_getentitytag.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/signupsettings/method_update.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/signupsettings/model_portalsignupsettings.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/signupsettings/model_portalsignupsettingsproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/signupsettings/model_termsofserviceproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/signupsettings/version.go (86%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/subscription/README.md (50%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/subscription/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/subscription/constants.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/subscription/id_service.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/subscription/id_subscriptions2.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/subscription/id_usersubscriptions2.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/id_workspace.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/id_workspacesubscriptions2.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/subscription/method_createorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/subscription/method_delete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/subscription/method_get.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/subscription/method_getentitytag.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/subscription/method_list.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/subscription/method_listsecrets.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/subscription/method_regenerateprimarykey.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/subscription/method_regeneratesecondarykey.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/subscription/method_update.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/subscription/method_usersubscriptionget.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/method_workspacesubscriptioncreateorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/method_workspacesubscriptiondelete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/method_workspacesubscriptionget.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/method_workspacesubscriptiongetentitytag.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/method_workspacesubscriptionlist.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/method_workspacesubscriptionlistsecrets.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/method_workspacesubscriptionregenerateprimarykey.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/method_workspacesubscriptionregeneratesecondarykey.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/method_workspacesubscriptionupdate.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/subscription/model_subscriptioncontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/subscription/model_subscriptioncontractproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/subscription/model_subscriptioncreateparameterproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/subscription/model_subscriptioncreateparameters.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/subscription/model_subscriptionkeyscontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/subscription/model_subscriptionupdateparameterproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/subscription/model_subscriptionupdateparameters.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/subscription/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/subscription/version.go (86%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/tag/README.md (50%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/tag/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/tag/id_service.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/tag/id_tag.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/id_workspace.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/id_workspacetag.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/tag/method_createorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/tag/method_delete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/tag/method_get.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/tag/method_getentitystate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/tag/method_listbyservice.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/tag/method_update.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/method_workspacetagcreateorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/method_workspacetagdelete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/method_workspacetagget.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/method_workspacetaggetentitystate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/method_workspacetaglistbyservice.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/method_workspacetagupdate.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/tag/model_tagcontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/tag/model_tagcontractproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/tag/model_tagcreateupdateparameters.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/tag/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/tag/version.go (85%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/tenantaccess/README.md (95%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/tenantaccess/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/tenantaccess/constants.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/tenantaccess/id_access.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/tenantaccess/id_service.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/tenantaccess/method_create.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/tenantaccess/method_get.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/tenantaccess/method_getentitytag.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/tenantaccess/method_listbyservice.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/tenantaccess/method_listsecrets.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/tenantaccess/method_regenerateprimarykey.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/tenantaccess/method_regeneratesecondarykey.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/tenantaccess/method_update.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/tenantaccess/model_accessinformationcontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/tenantaccess/model_accessinformationcontractproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/tenantaccess/model_accessinformationcreateparameterproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/tenantaccess/model_accessinformationcreateparameters.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/tenantaccess/model_accessinformationsecretscontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/tenantaccess/model_accessinformationupdateparameterproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/tenantaccess/model_accessinformationupdateparameters.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/tenantaccess/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/tenantaccess/version.go (86%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/user/README.md (90%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/user/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/user/constants.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/user/id_service.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/user/id_user.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/user/method_createorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/user/method_delete.go (73%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/user/method_get.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/user/method_getentitytag.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/user/method_listbyservice.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/user/method_update.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/user/model_groupcontractproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/user/model_usercontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/user/model_usercontractproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/user/model_usercreateparameterproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/user/model_usercreateparameters.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/user/model_useridentitycontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/user/model_userupdateparameters.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/user/model_userupdateparametersproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/user/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2022-08-01 => 2023-05-01-preview}/user/version.go (85%) diff --git a/internal/services/apimanagement/api_management_api_data_source.go b/internal/services/apimanagement/api_management_api_data_source.go index 18de5b92e589..34393ad0fee5 100644 --- a/internal/services/apimanagement/api_management_api_data_source.go +++ b/internal/services/apimanagement/api_management_api_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-helpers/resourcemanager/commonschema" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/apimanagement/schemaz" "github.com/hashicorp/terraform-provider-azurerm/internal/services/apimanagement/validate" diff --git a/internal/services/apimanagement/api_management_api_diagnostic_resource.go b/internal/services/apimanagement/api_management_api_diagnostic_resource.go index 895f630fe5f8..ba583d81d81e 100644 --- a/internal/services/apimanagement/api_management_api_diagnostic_resource.go +++ b/internal/services/apimanagement/api_management_api_diagnostic_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/commonschema" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apidiagnostic" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/logger" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/logger" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/apimanagement/schemaz" diff --git a/internal/services/apimanagement/api_management_api_diagnostic_resource_test.go b/internal/services/apimanagement/api_management_api_diagnostic_resource_test.go index e1bf385e69e0..ccca3d69217e 100644 --- a/internal/services/apimanagement/api_management_api_diagnostic_resource_test.go +++ b/internal/services/apimanagement/api_management_api_diagnostic_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/apimanagement/2022-08-01/apidiagnostic" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic" "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/apimanagement/api_management_api_operation_policy_resource.go b/internal/services/apimanagement/api_management_api_operation_policy_resource.go index 7ea4e6a483d7..98bcebfcaed5 100644 --- a/internal/services/apimanagement/api_management_api_operation_policy_resource.go +++ b/internal/services/apimanagement/api_management_api_operation_policy_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/commonschema" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationpolicy" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/apimanagement/migration" diff --git a/internal/services/apimanagement/api_management_api_operation_policy_resource_test.go b/internal/services/apimanagement/api_management_api_operation_policy_resource_test.go index 5bf2d0b600bf..de3f961ad0ad 100644 --- a/internal/services/apimanagement/api_management_api_operation_policy_resource_test.go +++ b/internal/services/apimanagement/api_management_api_operation_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/apimanagement/2022-08-01/apioperationpolicy" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy" "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/apimanagement/api_management_api_operation_resource.go b/internal/services/apimanagement/api_management_api_operation_resource.go index 0ac187477fed..fb5ad79b660f 100644 --- a/internal/services/apimanagement/api_management_api_operation_resource.go +++ b/internal/services/apimanagement/api_management_api_operation_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/apimanagement/2022-08-01/apioperation" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/apimanagement/schemaz" diff --git a/internal/services/apimanagement/api_management_api_operation_resource_test.go b/internal/services/apimanagement/api_management_api_operation_resource_test.go index 9509eec069b4..e7e8d4c9d87e 100644 --- a/internal/services/apimanagement/api_management_api_operation_resource_test.go +++ b/internal/services/apimanagement/api_management_api_operation_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/apimanagement/2022-08-01/apioperation" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation" "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/apimanagement/api_management_api_operation_tag_resource.go b/internal/services/apimanagement/api_management_api_operation_tag_resource.go index 8fd10c87c18a..bf99e6c2c3e6 100644 --- a/internal/services/apimanagement/api_management_api_operation_tag_resource.go +++ b/internal/services/apimanagement/api_management_api_operation_tag_resource.go @@ -9,8 +9,8 @@ import ( "time" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationtag" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tag" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationtag" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/apimanagement/validate" diff --git a/internal/services/apimanagement/api_management_api_operation_tag_resource_test.go b/internal/services/apimanagement/api_management_api_operation_tag_resource_test.go index 071b37166ff6..2371c748c1b8 100644 --- a/internal/services/apimanagement/api_management_api_operation_tag_resource_test.go +++ b/internal/services/apimanagement/api_management_api_operation_tag_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/apimanagement/2022-08-01/apioperationtag" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationtag" "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/apimanagement/api_management_api_policy_resource.go b/internal/services/apimanagement/api_management_api_policy_resource.go index 63a2618d7a68..d98e30174895 100644 --- a/internal/services/apimanagement/api_management_api_policy_resource.go +++ b/internal/services/apimanagement/api_management_api_policy_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/commonschema" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apipolicy" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apipolicy" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/apimanagement/migration" diff --git a/internal/services/apimanagement/api_management_api_policy_resource_test.go b/internal/services/apimanagement/api_management_api_policy_resource_test.go index 5fe3f40ea980..ca179ca679b9 100644 --- a/internal/services/apimanagement/api_management_api_policy_resource_test.go +++ b/internal/services/apimanagement/api_management_api_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/apimanagement/2022-08-01/apipolicy" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apipolicy" "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/apimanagement/api_management_api_release.go b/internal/services/apimanagement/api_management_api_release.go index 63a4f500b2ae..9929a201afc6 100644 --- a/internal/services/apimanagement/api_management_api_release.go +++ b/internal/services/apimanagement/api_management_api_release.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-sdk/resource-manager/apimanagement/2022-08-01/api" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apirelease" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/apimanagement/validate" diff --git a/internal/services/apimanagement/api_management_api_release_resource_test.go b/internal/services/apimanagement/api_management_api_release_resource_test.go index 494def61cf4a..853e9aaf3cc2 100644 --- a/internal/services/apimanagement/api_management_api_release_resource_test.go +++ b/internal/services/apimanagement/api_management_api_release_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/apimanagement/2022-08-01/apirelease" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease" "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/apimanagement/api_management_api_resource.go b/internal/services/apimanagement/api_management_api_resource.go index 01ff476c0b62..e1e01204bf06 100644 --- a/internal/services/apimanagement/api_management_api_resource.go +++ b/internal/services/apimanagement/api_management_api_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/commonschema" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api" "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/apimanagement/api_management_api_resource_test.go b/internal/services/apimanagement/api_management_api_resource_test.go index ee1ec558bc85..387190bfef67 100644 --- a/internal/services/apimanagement/api_management_api_resource_test.go +++ b/internal/services/apimanagement/api_management_api_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/apimanagement/2022-08-01/api" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api" "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/apimanagement/api_management_api_schema_resource.go b/internal/services/apimanagement/api_management_api_schema_resource.go index 12db8684a13e..08d959b5ecf2 100644 --- a/internal/services/apimanagement/api_management_api_schema_resource.go +++ b/internal/services/apimanagement/api_management_api_schema_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/commonschema" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apischema" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/apimanagement/schemaz" diff --git a/internal/services/apimanagement/api_management_api_schema_resource_test.go b/internal/services/apimanagement/api_management_api_schema_resource_test.go index db6c55df7f50..eda9a88a7210 100644 --- a/internal/services/apimanagement/api_management_api_schema_resource_test.go +++ b/internal/services/apimanagement/api_management_api_schema_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/apimanagement/2022-08-01/apischema" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema" "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/apimanagement/api_management_api_tag_description_resource.go b/internal/services/apimanagement/api_management_api_tag_description_resource.go index 1b30c21c4d40..d92af077a2ad 100644 --- a/internal/services/apimanagement/api_management_api_tag_description_resource.go +++ b/internal/services/apimanagement/api_management_api_tag_description_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-sdk/resource-manager/apimanagement/2022-08-01/apitag" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitagdescription" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitag" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitagdescription" "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/apimanagement/api_management_api_tag_description_resource_test.go b/internal/services/apimanagement/api_management_api_tag_description_resource_test.go index 2d051a995e35..8d027681c0e0 100644 --- a/internal/services/apimanagement/api_management_api_tag_description_resource_test.go +++ b/internal/services/apimanagement/api_management_api_tag_description_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/apimanagement/2022-08-01/apitagdescription" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitagdescription" "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/apimanagement/api_management_api_tag_resource.go b/internal/services/apimanagement/api_management_api_tag_resource.go index 8c4d8c6ae2c7..9653398a9664 100644 --- a/internal/services/apimanagement/api_management_api_tag_resource.go +++ b/internal/services/apimanagement/api_management_api_tag_resource.go @@ -9,9 +9,9 @@ import ( "time" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitag" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tag" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitag" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag" "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/apimanagement/api_management_api_tag_resource_test.go b/internal/services/apimanagement/api_management_api_tag_resource_test.go index 4b47f26713c9..2a52faeff723 100644 --- a/internal/services/apimanagement/api_management_api_tag_resource_test.go +++ b/internal/services/apimanagement/api_management_api_tag_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/apimanagement/2022-08-01/apitag" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitag" "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/apimanagement/api_management_api_version_set_data_source.go b/internal/services/apimanagement/api_management_api_version_set_data_source.go index f4667f1efb8a..d2b89919a020 100644 --- a/internal/services/apimanagement/api_management_api_version_set_data_source.go +++ b/internal/services/apimanagement/api_management_api_version_set_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-helpers/resourcemanager/commonschema" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apiversionset" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/apimanagement/schemaz" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" diff --git a/internal/services/apimanagement/api_management_api_version_set_resource.go b/internal/services/apimanagement/api_management_api_version_set_resource.go index c7de3d85d6b0..472412f40cdf 100644 --- a/internal/services/apimanagement/api_management_api_version_set_resource.go +++ b/internal/services/apimanagement/api_management_api_version_set_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/commonschema" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apiversionset" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apiversionsets" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionsets" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/apimanagement/migration" diff --git a/internal/services/apimanagement/api_management_api_version_set_resource_test.go b/internal/services/apimanagement/api_management_api_version_set_resource_test.go index 5e97d6b8434f..55a2a567e500 100644 --- a/internal/services/apimanagement/api_management_api_version_set_resource_test.go +++ b/internal/services/apimanagement/api_management_api_version_set_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/apimanagement/2022-08-01/apiversionset" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset" "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/apimanagement/api_management_authorization_server_resource.go b/internal/services/apimanagement/api_management_authorization_server_resource.go index 11e7bacff8f0..ec11aa32efc4 100644 --- a/internal/services/apimanagement/api_management_authorization_server_resource.go +++ b/internal/services/apimanagement/api_management_authorization_server_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/apimanagement/2022-08-01/authorizationserver" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/authorizationserver" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/apimanagement/schemaz" diff --git a/internal/services/apimanagement/api_management_authorization_server_resource_test.go b/internal/services/apimanagement/api_management_authorization_server_resource_test.go index 1e4807090079..8f27e93980b2 100644 --- a/internal/services/apimanagement/api_management_authorization_server_resource_test.go +++ b/internal/services/apimanagement/api_management_authorization_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/apimanagement/2022-08-01/authorizationserver" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/authorizationserver" "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/apimanagement/api_management_backend_resource.go b/internal/services/apimanagement/api_management_backend_resource.go index 3c7f8a130594..46534c92701e 100644 --- a/internal/services/apimanagement/api_management_backend_resource.go +++ b/internal/services/apimanagement/api_management_backend_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/commonschema" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/backend" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/apimanagement/schemaz" diff --git a/internal/services/apimanagement/api_management_backend_resource_test.go b/internal/services/apimanagement/api_management_backend_resource_test.go index 970d0bcf0ff2..bcf5a427bdef 100644 --- a/internal/services/apimanagement/api_management_backend_resource_test.go +++ b/internal/services/apimanagement/api_management_backend_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/apimanagement/2022-08-01/backend" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend" "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/apimanagement/api_management_certificate_resource.go b/internal/services/apimanagement/api_management_certificate_resource.go index d6e809d064fd..060647b9a9aa 100644 --- a/internal/services/apimanagement/api_management_certificate_resource.go +++ b/internal/services/apimanagement/api_management_certificate_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/apimanagement/2022-08-01/certificate" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/certificate" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/apimanagement/schemaz" diff --git a/internal/services/apimanagement/api_management_certificate_resource_test.go b/internal/services/apimanagement/api_management_certificate_resource_test.go index f78ec528990f..b5524b17024d 100644 --- a/internal/services/apimanagement/api_management_certificate_resource_test.go +++ b/internal/services/apimanagement/api_management_certificate_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/apimanagement/2022-08-01/certificate" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/certificate" "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/apimanagement/api_management_custom_domain_resource.go b/internal/services/apimanagement/api_management_custom_domain_resource.go index 7ece6f2c2b4b..cb622409f37c 100644 --- a/internal/services/apimanagement/api_management_custom_domain_resource.go +++ b/internal/services/apimanagement/api_management_custom_domain_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-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/apimanagement/parse" diff --git a/internal/services/apimanagement/api_management_custom_domain_resource_test.go b/internal/services/apimanagement/api_management_custom_domain_resource_test.go index dc88358f825f..efe4d9fc225c 100644 --- a/internal/services/apimanagement/api_management_custom_domain_resource_test.go +++ b/internal/services/apimanagement/api_management_custom_domain_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/apimanagement/2022-08-01/apimanagementservice" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice" "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/apimanagement/api_management_data_source.go b/internal/services/apimanagement/api_management_data_source.go index e36fd26930dc..c9471f2710ac 100644 --- a/internal/services/apimanagement/api_management_data_source.go +++ b/internal/services/apimanagement/api_management_data_source.go @@ -15,8 +15,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/apimanagement/2022-08-01/apimanagementservice" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tenantaccess" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tenantaccess" "github.com/hashicorp/terraform-provider-azurerm/helpers/azure" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/apimanagement/schemaz" diff --git a/internal/services/apimanagement/api_management_diagnostic_resource.go b/internal/services/apimanagement/api_management_diagnostic_resource.go index c3d128a53ce6..c3dfe60301b8 100644 --- a/internal/services/apimanagement/api_management_diagnostic_resource.go +++ b/internal/services/apimanagement/api_management_diagnostic_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/commonschema" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/diagnostic" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/logger" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/diagnostic" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/logger" "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/apimanagement/api_management_diagnostic_resource_test.go b/internal/services/apimanagement/api_management_diagnostic_resource_test.go index 3c114686b603..d81c98448707 100644 --- a/internal/services/apimanagement/api_management_diagnostic_resource_test.go +++ b/internal/services/apimanagement/api_management_diagnostic_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/apimanagement/2022-08-01/diagnostic" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/diagnostic" "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/apimanagement/api_management_email_template_resource.go b/internal/services/apimanagement/api_management_email_template_resource.go index 6c0f67056a07..60b3eed5053c 100644 --- a/internal/services/apimanagement/api_management_email_template_resource.go +++ b/internal/services/apimanagement/api_management_email_template_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/apimanagement/2022-08-01/emailtemplates" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/emailtemplates" "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/apimanagement/api_management_email_template_resource_test.go b/internal/services/apimanagement/api_management_email_template_resource_test.go index bd73b7c2c74f..fe3acc250cc4 100644 --- a/internal/services/apimanagement/api_management_email_template_resource_test.go +++ b/internal/services/apimanagement/api_management_email_template_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/apimanagement/2022-08-01/emailtemplates" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/emailtemplates" "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/apimanagement/api_management_gateway_api_resource.go b/internal/services/apimanagement/api_management_gateway_api_resource.go index 7a982603a44f..be7cc26657c8 100644 --- a/internal/services/apimanagement/api_management_gateway_api_resource.go +++ b/internal/services/apimanagement/api_management_gateway_api_resource.go @@ -10,9 +10,9 @@ import ( "time" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gateway" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayapi" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gateway" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi" "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/apimanagement/api_management_gateway_api_resource_test.go b/internal/services/apimanagement/api_management_gateway_api_resource_test.go index 7f150086d985..f76f12c1159b 100644 --- a/internal/services/apimanagement/api_management_gateway_api_resource_test.go +++ b/internal/services/apimanagement/api_management_gateway_api_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/apimanagement/2022-08-01/gatewayapi" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi" "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/apimanagement/api_management_gateway_certificate_authority_resource.go b/internal/services/apimanagement/api_management_gateway_certificate_authority_resource.go index 2c0e467d9147..eca2077c674a 100644 --- a/internal/services/apimanagement/api_management_gateway_certificate_authority_resource.go +++ b/internal/services/apimanagement/api_management_gateway_certificate_authority_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-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewaycertificateauthority" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewaycertificateauthority" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/apimanagement/parse" diff --git a/internal/services/apimanagement/api_management_gateway_certificate_authority_resource_test.go b/internal/services/apimanagement/api_management_gateway_certificate_authority_resource_test.go index 2b8890683daf..adf2fc10e376 100644 --- a/internal/services/apimanagement/api_management_gateway_certificate_authority_resource_test.go +++ b/internal/services/apimanagement/api_management_gateway_certificate_authority_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/apimanagement/2022-08-01/gatewaycertificateauthority" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewaycertificateauthority" "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/apimanagement/api_management_gateway_data_source.go b/internal/services/apimanagement/api_management_gateway_data_source.go index 218831b59636..2eccb9eb2ea9 100644 --- a/internal/services/apimanagement/api_management_gateway_data_source.go +++ b/internal/services/apimanagement/api_management_gateway_data_source.go @@ -9,8 +9,8 @@ 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/apimanagement/2022-08-01/apimanagementservice" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gateway" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gateway" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/apimanagement/schemaz" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" diff --git a/internal/services/apimanagement/api_management_gateway_host_name_configuration_data_source.go b/internal/services/apimanagement/api_management_gateway_host_name_configuration_data_source.go index bd8c135f18a6..c653094c02c2 100644 --- a/internal/services/apimanagement/api_management_gateway_host_name_configuration_data_source.go +++ b/internal/services/apimanagement/api_management_gateway_host_name_configuration_data_source.go @@ -9,8 +9,8 @@ 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/apimanagement/2022-08-01/apimanagementservice" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayhostnameconfiguration" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayhostnameconfiguration" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/apimanagement/schemaz" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" diff --git a/internal/services/apimanagement/api_management_gateway_host_name_configuration_resource.go b/internal/services/apimanagement/api_management_gateway_host_name_configuration_resource.go index 077af9636daa..9dc881e19341 100644 --- a/internal/services/apimanagement/api_management_gateway_host_name_configuration_resource.go +++ b/internal/services/apimanagement/api_management_gateway_host_name_configuration_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-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayhostnameconfiguration" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayhostnameconfiguration" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/apimanagement/schemaz" diff --git a/internal/services/apimanagement/api_management_gateway_host_name_configuration_resource_test.go b/internal/services/apimanagement/api_management_gateway_host_name_configuration_resource_test.go index 45be4467b9c5..4e285ca2ba55 100644 --- a/internal/services/apimanagement/api_management_gateway_host_name_configuration_resource_test.go +++ b/internal/services/apimanagement/api_management_gateway_host_name_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/apimanagement/2022-08-01/gatewayhostnameconfiguration" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayhostnameconfiguration" "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/apimanagement/api_management_gateway_resource.go b/internal/services/apimanagement/api_management_gateway_resource.go index f8d397edfecd..09cdb700f6be 100644 --- a/internal/services/apimanagement/api_management_gateway_resource.go +++ b/internal/services/apimanagement/api_management_gateway_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-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gateway" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gateway" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/apimanagement/schemaz" diff --git a/internal/services/apimanagement/api_management_gateway_resource_test.go b/internal/services/apimanagement/api_management_gateway_resource_test.go index 594b5e7c7f71..bcd62896f339 100644 --- a/internal/services/apimanagement/api_management_gateway_resource_test.go +++ b/internal/services/apimanagement/api_management_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/apimanagement/2022-08-01/gateway" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gateway" "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/apimanagement/api_management_global_schema_resource.go b/internal/services/apimanagement/api_management_global_schema_resource.go index 8fb2351d68f4..eea4e3d6e39a 100644 --- a/internal/services/apimanagement/api_management_global_schema_resource.go +++ b/internal/services/apimanagement/api_management_global_schema_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/commonschema" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/schema" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/apimanagement/schemaz" diff --git a/internal/services/apimanagement/api_management_global_schema_resource_test.go b/internal/services/apimanagement/api_management_global_schema_resource_test.go index 9144774c6b2a..caa4a589e599 100644 --- a/internal/services/apimanagement/api_management_global_schema_resource_test.go +++ b/internal/services/apimanagement/api_management_global_schema_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/apimanagement/2022-08-01/schema" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema" "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/apimanagement/api_management_group_data_source.go b/internal/services/apimanagement/api_management_group_data_source.go index 9c43becd01b4..286552e1e40f 100644 --- a/internal/services/apimanagement/api_management_group_data_source.go +++ b/internal/services/apimanagement/api_management_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-helpers/resourcemanager/commonschema" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/group" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/apimanagement/schemaz" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" diff --git a/internal/services/apimanagement/api_management_group_resource.go b/internal/services/apimanagement/api_management_group_resource.go index 8ba63102ac8b..27cb534bdfc9 100644 --- a/internal/services/apimanagement/api_management_group_resource.go +++ b/internal/services/apimanagement/api_management_group_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/apimanagement/2022-08-01/group" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/apimanagement/schemaz" diff --git a/internal/services/apimanagement/api_management_group_resource_test.go b/internal/services/apimanagement/api_management_group_resource_test.go index de4beefe6b77..2c5de8c025fc 100644 --- a/internal/services/apimanagement/api_management_group_resource_test.go +++ b/internal/services/apimanagement/api_management_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/apimanagement/2022-08-01/group" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group" "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/apimanagement/api_management_group_user_resource.go b/internal/services/apimanagement/api_management_group_user_resource.go index 53a4787eb438..70a66c69e500 100644 --- a/internal/services/apimanagement/api_management_group_user_resource.go +++ b/internal/services/apimanagement/api_management_group_user_resource.go @@ -10,7 +10,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/apimanagement/2022-08-01/groupuser" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/apimanagement/schemaz" diff --git a/internal/services/apimanagement/api_management_group_user_resource_test.go b/internal/services/apimanagement/api_management_group_user_resource_test.go index 5f3b6f6a4f90..cf29046ac626 100644 --- a/internal/services/apimanagement/api_management_group_user_resource_test.go +++ b/internal/services/apimanagement/api_management_group_user_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/apimanagement/2022-08-01/groupuser" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser" "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/apimanagement/api_management_identity_provider_aad_resource.go b/internal/services/apimanagement/api_management_identity_provider_aad_resource.go index 3870799dbe36..f325e8035a7c 100644 --- a/internal/services/apimanagement/api_management_identity_provider_aad_resource.go +++ b/internal/services/apimanagement/api_management_identity_provider_aad_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/apimanagement/2022-08-01/identityprovider" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/apimanagement/schemaz" diff --git a/internal/services/apimanagement/api_management_identity_provider_aad_resource_test.go b/internal/services/apimanagement/api_management_identity_provider_aad_resource_test.go index 2e5ed6f762fa..0abdb266af4e 100644 --- a/internal/services/apimanagement/api_management_identity_provider_aad_resource_test.go +++ b/internal/services/apimanagement/api_management_identity_provider_aad_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/apimanagement/2022-08-01/identityprovider" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider" "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/apimanagement/api_management_identity_provider_aadb2c_resource.go b/internal/services/apimanagement/api_management_identity_provider_aadb2c_resource.go index 912b425819a2..ae1bf17d4715 100644 --- a/internal/services/apimanagement/api_management_identity_provider_aadb2c_resource.go +++ b/internal/services/apimanagement/api_management_identity_provider_aadb2c_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/apimanagement/2022-08-01/identityprovider" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/apimanagement/schemaz" diff --git a/internal/services/apimanagement/api_management_identity_provider_aadb2c_resource_test.go b/internal/services/apimanagement/api_management_identity_provider_aadb2c_resource_test.go index 40643a393481..4e37d86757b3 100644 --- a/internal/services/apimanagement/api_management_identity_provider_aadb2c_resource_test.go +++ b/internal/services/apimanagement/api_management_identity_provider_aadb2c_resource_test.go @@ -11,7 +11,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/pointer" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/identityprovider" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider" "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/apimanagement/api_management_identity_provider_facebook_resource.go b/internal/services/apimanagement/api_management_identity_provider_facebook_resource.go index 25f75815fa7f..9e7ec7bfa5c6 100644 --- a/internal/services/apimanagement/api_management_identity_provider_facebook_resource.go +++ b/internal/services/apimanagement/api_management_identity_provider_facebook_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/apimanagement/2022-08-01/identityprovider" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/apimanagement/schemaz" diff --git a/internal/services/apimanagement/api_management_identity_provider_facebook_resource_test.go b/internal/services/apimanagement/api_management_identity_provider_facebook_resource_test.go index ed3ccd55115d..54e8ce2ef5bf 100644 --- a/internal/services/apimanagement/api_management_identity_provider_facebook_resource_test.go +++ b/internal/services/apimanagement/api_management_identity_provider_facebook_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/apimanagement/2022-08-01/identityprovider" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider" "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/apimanagement/api_management_identity_provider_google_resource.go b/internal/services/apimanagement/api_management_identity_provider_google_resource.go index 134690be29a7..41ab848877e0 100644 --- a/internal/services/apimanagement/api_management_identity_provider_google_resource.go +++ b/internal/services/apimanagement/api_management_identity_provider_google_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/apimanagement/2022-08-01/identityprovider" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/apimanagement/schemaz" diff --git a/internal/services/apimanagement/api_management_identity_provider_google_resource_test.go b/internal/services/apimanagement/api_management_identity_provider_google_resource_test.go index 0ebb553d5386..87462cdf7312 100644 --- a/internal/services/apimanagement/api_management_identity_provider_google_resource_test.go +++ b/internal/services/apimanagement/api_management_identity_provider_google_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/apimanagement/2022-08-01/identityprovider" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider" "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/apimanagement/api_management_identity_provider_microsoft_resource.go b/internal/services/apimanagement/api_management_identity_provider_microsoft_resource.go index e79bdcabfa96..90e76bff7018 100644 --- a/internal/services/apimanagement/api_management_identity_provider_microsoft_resource.go +++ b/internal/services/apimanagement/api_management_identity_provider_microsoft_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/apimanagement/2022-08-01/identityprovider" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/apimanagement/schemaz" diff --git a/internal/services/apimanagement/api_management_identity_provider_microsoft_resource_test.go b/internal/services/apimanagement/api_management_identity_provider_microsoft_resource_test.go index 395c8efe6057..61c546d7926d 100644 --- a/internal/services/apimanagement/api_management_identity_provider_microsoft_resource_test.go +++ b/internal/services/apimanagement/api_management_identity_provider_microsoft_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/apimanagement/2022-08-01/identityprovider" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider" "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/apimanagement/api_management_identity_provider_twitter_resource.go b/internal/services/apimanagement/api_management_identity_provider_twitter_resource.go index 8d36407d33d4..0879485b0a8d 100644 --- a/internal/services/apimanagement/api_management_identity_provider_twitter_resource.go +++ b/internal/services/apimanagement/api_management_identity_provider_twitter_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/apimanagement/2022-08-01/identityprovider" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/apimanagement/schemaz" diff --git a/internal/services/apimanagement/api_management_identity_provider_twitter_resource_test.go b/internal/services/apimanagement/api_management_identity_provider_twitter_resource_test.go index b10a738c41bf..62ca31b54fb6 100644 --- a/internal/services/apimanagement/api_management_identity_provider_twitter_resource_test.go +++ b/internal/services/apimanagement/api_management_identity_provider_twitter_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/apimanagement/2022-08-01/identityprovider" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider" "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/apimanagement/api_management_logger_resource.go b/internal/services/apimanagement/api_management_logger_resource.go index fbe28eb08420..c93a97dcf917 100644 --- a/internal/services/apimanagement/api_management_logger_resource.go +++ b/internal/services/apimanagement/api_management_logger_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/apimanagement/2022-08-01/logger" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/logger" "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/apimanagement/api_management_logger_resource_test.go b/internal/services/apimanagement/api_management_logger_resource_test.go index 5c8b873237e5..f913e1b62d3b 100644 --- a/internal/services/apimanagement/api_management_logger_resource_test.go +++ b/internal/services/apimanagement/api_management_logger_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/apimanagement/2022-08-01/logger" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/logger" "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/apimanagement/api_management_named_value_resource.go b/internal/services/apimanagement/api_management_named_value_resource.go index d8e82655f16a..6a84c5daac1d 100644 --- a/internal/services/apimanagement/api_management_named_value_resource.go +++ b/internal/services/apimanagement/api_management_named_value_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/apimanagement/2022-08-01/namedvalue" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/apimanagement/schemaz" diff --git a/internal/services/apimanagement/api_management_named_value_resource_test.go b/internal/services/apimanagement/api_management_named_value_resource_test.go index 9f19f855cf40..f48747c8086e 100644 --- a/internal/services/apimanagement/api_management_named_value_resource_test.go +++ b/internal/services/apimanagement/api_management_named_value_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/apimanagement/2022-08-01/namedvalue" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue" "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/apimanagement/api_management_notification_recipient_email.go b/internal/services/apimanagement/api_management_notification_recipient_email.go index 8810fa51b52b..528305fda7c1 100644 --- a/internal/services/apimanagement/api_management_notification_recipient_email.go +++ b/internal/services/apimanagement/api_management_notification_recipient_email.go @@ -9,8 +9,8 @@ import ( "time" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientemail" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail" "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/apimanagement/validate" diff --git a/internal/services/apimanagement/api_management_notification_recipient_email_test.go b/internal/services/apimanagement/api_management_notification_recipient_email_test.go index 39eb182fcb61..f00b78c24dd0 100644 --- a/internal/services/apimanagement/api_management_notification_recipient_email_test.go +++ b/internal/services/apimanagement/api_management_notification_recipient_email_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/apimanagement/2022-08-01/notificationrecipientemail" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail" "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/apimanagement/api_management_notification_recipient_user.go b/internal/services/apimanagement/api_management_notification_recipient_user.go index df46c2c91858..4cd09a19217e 100644 --- a/internal/services/apimanagement/api_management_notification_recipient_user.go +++ b/internal/services/apimanagement/api_management_notification_recipient_user.go @@ -9,8 +9,8 @@ import ( "time" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientuser" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser" "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/apimanagement/validate" diff --git a/internal/services/apimanagement/api_management_notification_recipient_user_test.go b/internal/services/apimanagement/api_management_notification_recipient_user_test.go index 0d98a16d55ec..a276888a70aa 100644 --- a/internal/services/apimanagement/api_management_notification_recipient_user_test.go +++ b/internal/services/apimanagement/api_management_notification_recipient_user_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/apimanagement/2022-08-01/notificationrecipientuser" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser" "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/apimanagement/api_management_openid_connect_provider_resource.go b/internal/services/apimanagement/api_management_openid_connect_provider_resource.go index bab74d5cae7f..6b634e69d0a3 100644 --- a/internal/services/apimanagement/api_management_openid_connect_provider_resource.go +++ b/internal/services/apimanagement/api_management_openid_connect_provider_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/apimanagement/2022-08-01/openidconnectprovider" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/openidconnectprovider" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/apimanagement/schemaz" diff --git a/internal/services/apimanagement/api_management_openid_connect_provider_resource_test.go b/internal/services/apimanagement/api_management_openid_connect_provider_resource_test.go index 84f355dd374f..333f75ab9f07 100644 --- a/internal/services/apimanagement/api_management_openid_connect_provider_resource_test.go +++ b/internal/services/apimanagement/api_management_openid_connect_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/apimanagement/2022-08-01/openidconnectprovider" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/openidconnectprovider" "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/apimanagement/api_management_policy_fragment_resource.go b/internal/services/apimanagement/api_management_policy_fragment_resource.go index 95ce7026882c..beeed688cfc2 100644 --- a/internal/services/apimanagement/api_management_policy_fragment_resource.go +++ b/internal/services/apimanagement/api_management_policy_fragment_resource.go @@ -12,8 +12,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/apimanagement/2022-08-01/apimanagementservice" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policyfragment" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/apimanagement/schemaz" diff --git a/internal/services/apimanagement/api_management_policy_fragment_resource_test.go b/internal/services/apimanagement/api_management_policy_fragment_resource_test.go index ae7f6e4b5ebe..7e107e76c11f 100644 --- a/internal/services/apimanagement/api_management_policy_fragment_resource_test.go +++ b/internal/services/apimanagement/api_management_policy_fragment_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/apimanagement/2022-08-01/policyfragment" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment" "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/apimanagement/api_management_policy_resource.go b/internal/services/apimanagement/api_management_policy_resource.go index 7aa1a221d427..edcdbe81f4d0 100644 --- a/internal/services/apimanagement/api_management_policy_resource.go +++ b/internal/services/apimanagement/api_management_policy_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-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policy" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policy" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/apimanagement/migration" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" diff --git a/internal/services/apimanagement/api_management_policy_resource_test.go b/internal/services/apimanagement/api_management_policy_resource_test.go index c3bbc5977593..aa3aa6792eca 100644 --- a/internal/services/apimanagement/api_management_policy_resource_test.go +++ b/internal/services/apimanagement/api_management_policy_resource_test.go @@ -9,8 +9,8 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/pointer" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policy" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policy" "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/apimanagement/api_management_product_api_resource.go b/internal/services/apimanagement/api_management_product_api_resource.go index 1c7b0d00f953..df61ed892cdf 100644 --- a/internal/services/apimanagement/api_management_product_api_resource.go +++ b/internal/services/apimanagement/api_management_product_api_resource.go @@ -10,7 +10,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/apimanagement/2022-08-01/productapi" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productapi" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/apimanagement/schemaz" diff --git a/internal/services/apimanagement/api_management_product_api_resource_test.go b/internal/services/apimanagement/api_management_product_api_resource_test.go index c28e3c3165e8..a91d1bdbfe7a 100644 --- a/internal/services/apimanagement/api_management_product_api_resource_test.go +++ b/internal/services/apimanagement/api_management_product_api_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/apimanagement/2022-08-01/productapi" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productapi" "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/apimanagement/api_management_product_data_source.go b/internal/services/apimanagement/api_management_product_data_source.go index 2dffc5174231..ce0c9a69315a 100644 --- a/internal/services/apimanagement/api_management_product_data_source.go +++ b/internal/services/apimanagement/api_management_product_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-helpers/resourcemanager/commonschema" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/product" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/apimanagement/schemaz" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" diff --git a/internal/services/apimanagement/api_management_product_group_resource.go b/internal/services/apimanagement/api_management_product_group_resource.go index 39eb11160d41..6c5c588a9d51 100644 --- a/internal/services/apimanagement/api_management_product_group_resource.go +++ b/internal/services/apimanagement/api_management_product_group_resource.go @@ -10,7 +10,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/apimanagement/2022-08-01/productgroup" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productgroup" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/apimanagement/schemaz" diff --git a/internal/services/apimanagement/api_management_product_group_resource_test.go b/internal/services/apimanagement/api_management_product_group_resource_test.go index 4648b5e9885e..12a909bc28db 100644 --- a/internal/services/apimanagement/api_management_product_group_resource_test.go +++ b/internal/services/apimanagement/api_management_product_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/apimanagement/2022-08-01/productgroup" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productgroup" "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/apimanagement/api_management_product_policy_resource.go b/internal/services/apimanagement/api_management_product_policy_resource.go index 67e2df8d6733..ecb9d4c806d9 100644 --- a/internal/services/apimanagement/api_management_product_policy_resource.go +++ b/internal/services/apimanagement/api_management_product_policy_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/commonschema" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productpolicy" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productpolicy" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/apimanagement/migration" diff --git a/internal/services/apimanagement/api_management_product_policy_resource_test.go b/internal/services/apimanagement/api_management_product_policy_resource_test.go index 7c972b76c275..272a39e9390a 100644 --- a/internal/services/apimanagement/api_management_product_policy_resource_test.go +++ b/internal/services/apimanagement/api_management_product_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/apimanagement/2022-08-01/productpolicy" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productpolicy" "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/apimanagement/api_management_product_resource.go b/internal/services/apimanagement/api_management_product_resource.go index 8f83532c9f5c..16a9d81f8a11 100644 --- a/internal/services/apimanagement/api_management_product_resource.go +++ b/internal/services/apimanagement/api_management_product_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/apimanagement/2022-08-01/product" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/apimanagement/schemaz" diff --git a/internal/services/apimanagement/api_management_product_resource_test.go b/internal/services/apimanagement/api_management_product_resource_test.go index b7405b48e519..ce16d6c95463 100644 --- a/internal/services/apimanagement/api_management_product_resource_test.go +++ b/internal/services/apimanagement/api_management_product_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/apimanagement/2022-08-01/product" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product" "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/apimanagement/api_management_product_tag_resource.go b/internal/services/apimanagement/api_management_product_tag_resource.go index d7cc98dd222b..57bac4ebdd71 100644 --- a/internal/services/apimanagement/api_management_product_tag_resource.go +++ b/internal/services/apimanagement/api_management_product_tag_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/apimanagement/2022-08-01/producttag" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/producttag" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/apimanagement/schemaz" diff --git a/internal/services/apimanagement/api_management_product_tag_resource_test.go b/internal/services/apimanagement/api_management_product_tag_resource_test.go index a2bab9bb1275..0f25f46097a3 100644 --- a/internal/services/apimanagement/api_management_product_tag_resource_test.go +++ b/internal/services/apimanagement/api_management_product_tag_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/apimanagement/2022-08-01/producttag" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/producttag" "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/apimanagement/api_management_redis_cache_resource.go b/internal/services/apimanagement/api_management_redis_cache_resource.go index 58234ec2c018..590d2d020c2d 100644 --- a/internal/services/apimanagement/api_management_redis_cache_resource.go +++ b/internal/services/apimanagement/api_management_redis_cache_resource.go @@ -12,8 +12,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/apimanagement/2022-08-01/apimanagementservice" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/cache" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/cache" "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/apimanagement/api_management_redis_cache_resource_test.go b/internal/services/apimanagement/api_management_redis_cache_resource_test.go index b01e94074474..a198c746aa77 100644 --- a/internal/services/apimanagement/api_management_redis_cache_resource_test.go +++ b/internal/services/apimanagement/api_management_redis_cache_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/apimanagement/2022-08-01/cache" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/cache" "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/apimanagement/api_management_resource.go b/internal/services/apimanagement/api_management_resource.go index 2234cd8ac153..0d34c87abbaf 100644 --- a/internal/services/apimanagement/api_management_resource.go +++ b/internal/services/apimanagement/api_management_resource.go @@ -19,15 +19,15 @@ 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/apimanagement/2022-08-01/api" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/delegationsettings" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/deletedservice" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policy" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/product" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signinsettings" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signupsettings" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tenantaccess" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/delegationsettings" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/deletedservice" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policy" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signinsettings" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signupsettings" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tenantaccess" "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/apimanagement/api_management_resource_test.go b/internal/services/apimanagement/api_management_resource_test.go index 2c31b148ad35..98c834382b02 100644 --- a/internal/services/apimanagement/api_management_resource_test.go +++ b/internal/services/apimanagement/api_management_resource_test.go @@ -11,9 +11,9 @@ import ( "time" "github.com/hashicorp/go-azure-helpers/lang/pointer" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/product" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product" "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/testclient" diff --git a/internal/services/apimanagement/api_management_subscription_resource.go b/internal/services/apimanagement/api_management_subscription_resource.go index 609fb9f7e18b..9ab481360bba 100644 --- a/internal/services/apimanagement/api_management_subscription_resource.go +++ b/internal/services/apimanagement/api_management_subscription_resource.go @@ -15,9 +15,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/commonschema" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/product" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription" "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/apimanagement/api_management_subscription_resource_test.go b/internal/services/apimanagement/api_management_subscription_resource_test.go index 46448b2b7655..9a5f3746b44a 100644 --- a/internal/services/apimanagement/api_management_subscription_resource_test.go +++ b/internal/services/apimanagement/api_management_subscription_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/apimanagement/2022-08-01/subscription" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription" "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/apimanagement/api_management_tag_resource.go b/internal/services/apimanagement/api_management_tag_resource.go index 5075f6b72aac..ff101d4e8074 100644 --- a/internal/services/apimanagement/api_management_tag_resource.go +++ b/internal/services/apimanagement/api_management_tag_resource.go @@ -9,8 +9,8 @@ import ( "time" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tag" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/apimanagement/validate" diff --git a/internal/services/apimanagement/api_management_tag_resource_test.go b/internal/services/apimanagement/api_management_tag_resource_test.go index 8cdce191322b..274703466704 100644 --- a/internal/services/apimanagement/api_management_tag_resource_test.go +++ b/internal/services/apimanagement/api_management_tag_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/apimanagement/2022-08-01/tag" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag" "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/apimanagement/api_management_user_data_source.go b/internal/services/apimanagement/api_management_user_data_source.go index 0924f80cf928..f80473ed60b8 100644 --- a/internal/services/apimanagement/api_management_user_data_source.go +++ b/internal/services/apimanagement/api_management_user_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-helpers/resourcemanager/commonschema" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/user" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/user" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/apimanagement/schemaz" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" diff --git a/internal/services/apimanagement/api_management_user_resource.go b/internal/services/apimanagement/api_management_user_resource.go index 6910cdeb0ed9..ad9be9a8cfad 100644 --- a/internal/services/apimanagement/api_management_user_resource.go +++ b/internal/services/apimanagement/api_management_user_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/apimanagement/2022-08-01/user" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/user" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/apimanagement/schemaz" diff --git a/internal/services/apimanagement/api_management_user_resource_test.go b/internal/services/apimanagement/api_management_user_resource_test.go index aaa8db64b6a8..9d8293513985 100644 --- a/internal/services/apimanagement/api_management_user_resource_test.go +++ b/internal/services/apimanagement/api_management_user_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/apimanagement/2022-08-01/user" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/user" "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/apimanagement/client/client.go b/internal/services/apimanagement/client/client.go index bd7089af34d9..7d3e197a6f9f 100644 --- a/internal/services/apimanagement/client/client.go +++ b/internal/services/apimanagement/client/client.go @@ -6,53 +6,53 @@ package client import ( "fmt" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apidiagnostic" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperation" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationpolicy" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationtag" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apipolicy" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apirelease" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apischema" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitag" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitagdescription" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apiversionset" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apiversionsets" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/authorizationserver" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/backend" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/cache" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/certificate" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/delegationsettings" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/deletedservice" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/diagnostic" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/emailtemplates" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gateway" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayapi" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewaycertificateauthority" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayhostnameconfiguration" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/group" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/groupuser" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/identityprovider" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/logger" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/namedvalue" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientemail" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientuser" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/openidconnectprovider" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policy" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policyfragment" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/product" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productapi" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productgroup" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productpolicy" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/producttag" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/schema" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signinsettings" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signupsettings" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tag" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tenantaccess" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/user" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationtag" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apipolicy" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitag" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitagdescription" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionsets" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/authorizationserver" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/cache" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/certificate" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/delegationsettings" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/deletedservice" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/diagnostic" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/emailtemplates" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gateway" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewaycertificateauthority" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayhostnameconfiguration" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/logger" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/openidconnectprovider" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policy" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productapi" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productgroup" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productpolicy" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/producttag" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signinsettings" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signupsettings" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tenantaccess" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/user" "github.com/hashicorp/terraform-provider-azurerm/internal/common" ) diff --git a/internal/services/apimanagement/identity_provider_import.go b/internal/services/apimanagement/identity_provider_import.go index 7a477ff5c153..2daa3629ed16 100644 --- a/internal/services/apimanagement/identity_provider_import.go +++ b/internal/services/apimanagement/identity_provider_import.go @@ -6,7 +6,7 @@ package apimanagement import ( "fmt" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/identityprovider" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" ) diff --git a/internal/services/apimanagement/migration/api_operation_policy_v1_to_v2.go b/internal/services/apimanagement/migration/api_operation_policy_v1_to_v2.go index 05c7d88e0cc8..61a49019f861 100644 --- a/internal/services/apimanagement/migration/api_operation_policy_v1_to_v2.go +++ b/internal/services/apimanagement/migration/api_operation_policy_v1_to_v2.go @@ -8,7 +8,7 @@ import ( "log" "strings" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationpolicy" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" ) diff --git a/internal/services/apimanagement/migration/api_policy_v1_to_v2.go b/internal/services/apimanagement/migration/api_policy_v1_to_v2.go index 40fa5109f093..6321368fd43c 100644 --- a/internal/services/apimanagement/migration/api_policy_v1_to_v2.go +++ b/internal/services/apimanagement/migration/api_policy_v1_to_v2.go @@ -8,7 +8,7 @@ import ( "log" "strings" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apipolicy" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apipolicy" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" ) diff --git a/internal/services/apimanagement/migration/api_product_policy_v1_to_v2.go b/internal/services/apimanagement/migration/api_product_policy_v1_to_v2.go index ddd780fbdd4a..1e3dd1f5787f 100644 --- a/internal/services/apimanagement/migration/api_product_policy_v1_to_v2.go +++ b/internal/services/apimanagement/migration/api_product_policy_v1_to_v2.go @@ -8,7 +8,7 @@ import ( "log" "strings" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productpolicy" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productpolicy" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" ) diff --git a/internal/services/apimanagement/migration/policy.go b/internal/services/apimanagement/migration/policy.go index 03477bb5f0df..49f44fa0dded 100644 --- a/internal/services/apimanagement/migration/policy.go +++ b/internal/services/apimanagement/migration/policy.go @@ -9,7 +9,7 @@ import ( "html" "github.com/hashicorp/go-azure-helpers/lang/pointer" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policy" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policy" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" ) diff --git a/internal/services/apimanagement/migration/policy_v2_to_v3.go b/internal/services/apimanagement/migration/policy_v2_to_v3.go index 3139336ee065..d16b01cb0f47 100644 --- a/internal/services/apimanagement/migration/policy_v2_to_v3.go +++ b/internal/services/apimanagement/migration/policy_v2_to_v3.go @@ -9,7 +9,7 @@ import ( "log" "strings" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" ) diff --git a/internal/services/apimanagement/schemaz/api_management.go b/internal/services/apimanagement/schemaz/api_management.go index 4ac582ef3a91..aa1cf796a55b 100644 --- a/internal/services/apimanagement/schemaz/api_management.go +++ b/internal/services/apimanagement/schemaz/api_management.go @@ -9,7 +9,7 @@ import ( "strings" "github.com/hashicorp/go-azure-helpers/lang/pointer" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperation" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation" "github.com/hashicorp/terraform-provider-azurerm/internal/services/apimanagement/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" diff --git a/internal/services/apimanagement/validate/api_management_sku.go b/internal/services/apimanagement/validate/api_management_sku.go index e29a212245b9..57464a696470 100644 --- a/internal/services/apimanagement/validate/api_management_sku.go +++ b/internal/services/apimanagement/validate/api_management_sku.go @@ -12,7 +12,7 @@ import ( func ApimSkuName() pluginsdk.SchemaValidateFunc { return validation.StringMatch( - regexp.MustCompile(`^Consumption_0$|^Basic_(1|2)$|^Developer_1$|^Premium_([1-9][0-9]{0,1})$|^Standard_[1-4]$`), + regexp.MustCompile(`^Consumption_0$|^Basic_(1|2)$|^BasicV2_([1-9]|10)$|^Developer_1$|^Premium_([1-9][0-9]{0,1})$|^Standard_[1-4]$|^StandardV2_([1-9]|10)$`), `This is not a valid Api Management sku name.`, ) } diff --git a/internal/services/apimanagement/validate/api_management_sku_test.go b/internal/services/apimanagement/validate/api_management_sku_test.go index ad0e56e48cb4..3f3fdb43549b 100644 --- a/internal/services/apimanagement/validate/api_management_sku_test.go +++ b/internal/services/apimanagement/validate/api_management_sku_test.go @@ -31,6 +31,16 @@ func TestApimSkuName(t *testing.T) { input: "Basic_1", valid: true, }, + { + name: "BasicV2_3", + input: "BasicV2_3", + valid: true, + }, + { + name: "BasicV2_12", + input: "BasicV2_12", + valid: false, + }, { name: "Developer_1", input: "Developer_1", @@ -61,6 +71,16 @@ func TestApimSkuName(t *testing.T) { input: "Premium_7", valid: true, }, + { + name: "StandardV2_7", + input: "StandardV2_7", + valid: true, + }, + { + name: "standardV2_2", + input: "standardV2_2", + valid: false, + }, { name: "Standard_7", input: "Standard_7", diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api/README.md deleted file mode 100644 index 010a0a81e00d..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api/README.md +++ /dev/null @@ -1,123 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api` Documentation - -The `api` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2022-08-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/apimanagement/2022-08-01/api" -``` - - -### Client Initialization - -```go -client := api.NewApiClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `ApiClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := api.NewApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue") - -payload := api.ApiCreateOrUpdateParameter{ - // ... -} - - -if err := client.CreateOrUpdateThenPoll(ctx, id, payload, api.DefaultCreateOrUpdateOperationOptions()); err != nil { - // handle the error -} -``` - - -### Example Usage: `ApiClient.Delete` - -```go -ctx := context.TODO() -id := api.NewApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue") - -read, err := client.Delete(ctx, id, api.DefaultDeleteOperationOptions()) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `ApiClient.Get` - -```go -ctx := context.TODO() -id := api.NewApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue") - -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: `ApiClient.GetEntityTag` - -```go -ctx := context.TODO() -id := api.NewApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue") - -read, err := client.GetEntityTag(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `ApiClient.ListByService` - -```go -ctx := context.TODO() -id := api.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue") - -// alternatively `client.ListByService(ctx, id, api.DefaultListByServiceOperationOptions())` can be used to do batched pagination -items, err := client.ListByServiceComplete(ctx, id, api.DefaultListByServiceOperationOptions()) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `ApiClient.Update` - -```go -ctx := context.TODO() -id := api.NewApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue") - -payload := api.ApiUpdateContract{ - // ... -} - - -read, err := client.Update(ctx, id, payload, api.DefaultUpdateOperationOptions()) -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/apimanagement/2022-08-01/apioperation/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperation/README.md deleted file mode 100644 index 192e76483d9b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperation/README.md +++ /dev/null @@ -1,127 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperation` Documentation - -The `apioperation` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2022-08-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/apimanagement/2022-08-01/apioperation" -``` - - -### Client Initialization - -```go -client := apioperation.NewApiOperationClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `ApiOperationClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := apioperation.NewOperationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue", "operationIdValue") - -payload := apioperation.OperationContract{ - // ... -} - - -read, err := client.CreateOrUpdate(ctx, id, payload, apioperation.DefaultCreateOrUpdateOperationOptions()) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `ApiOperationClient.Delete` - -```go -ctx := context.TODO() -id := apioperation.NewOperationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue", "operationIdValue") - -read, err := client.Delete(ctx, id, apioperation.DefaultDeleteOperationOptions()) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `ApiOperationClient.Get` - -```go -ctx := context.TODO() -id := apioperation.NewOperationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue", "operationIdValue") - -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: `ApiOperationClient.GetEntityTag` - -```go -ctx := context.TODO() -id := apioperation.NewOperationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue", "operationIdValue") - -read, err := client.GetEntityTag(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `ApiOperationClient.ListByApi` - -```go -ctx := context.TODO() -id := apioperation.NewApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue") - -// alternatively `client.ListByApi(ctx, id, apioperation.DefaultListByApiOperationOptions())` can be used to do batched pagination -items, err := client.ListByApiComplete(ctx, id, apioperation.DefaultListByApiOperationOptions()) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `ApiOperationClient.Update` - -```go -ctx := context.TODO() -id := apioperation.NewOperationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue", "operationIdValue") - -payload := apioperation.OperationUpdateContract{ - // ... -} - - -read, err := client.Update(ctx, id, payload, apioperation.DefaultUpdateOperationOptions()) -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/apimanagement/2022-08-01/apioperationpolicy/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationpolicy/README.md deleted file mode 100644 index ed57c7b8978e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationpolicy/README.md +++ /dev/null @@ -1,106 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationpolicy` Documentation - -The `apioperationpolicy` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2022-08-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/apimanagement/2022-08-01/apioperationpolicy" -``` - - -### Client Initialization - -```go -client := apioperationpolicy.NewApiOperationPolicyClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `ApiOperationPolicyClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := apioperationpolicy.NewOperationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue", "operationIdValue") - -payload := apioperationpolicy.PolicyContract{ - // ... -} - - -read, err := client.CreateOrUpdate(ctx, id, payload, apioperationpolicy.DefaultCreateOrUpdateOperationOptions()) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `ApiOperationPolicyClient.Delete` - -```go -ctx := context.TODO() -id := apioperationpolicy.NewOperationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue", "operationIdValue") - -read, err := client.Delete(ctx, id, apioperationpolicy.DefaultDeleteOperationOptions()) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `ApiOperationPolicyClient.Get` - -```go -ctx := context.TODO() -id := apioperationpolicy.NewOperationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue", "operationIdValue") - -read, err := client.Get(ctx, id, apioperationpolicy.DefaultGetOperationOptions()) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `ApiOperationPolicyClient.GetEntityTag` - -```go -ctx := context.TODO() -id := apioperationpolicy.NewOperationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue", "operationIdValue") - -read, err := client.GetEntityTag(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `ApiOperationPolicyClient.ListByOperation` - -```go -ctx := context.TODO() -id := apioperationpolicy.NewOperationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue", "operationIdValue") - -// alternatively `client.ListByOperation(ctx, id)` can be used to do batched pagination -items, err := client.ListByOperationComplete(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/apimanagement/2022-08-01/apipolicy/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apipolicy/README.md deleted file mode 100644 index 445a6a5a03a4..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apipolicy/README.md +++ /dev/null @@ -1,106 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apipolicy` Documentation - -The `apipolicy` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2022-08-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/apimanagement/2022-08-01/apipolicy" -``` - - -### Client Initialization - -```go -client := apipolicy.NewApiPolicyClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `ApiPolicyClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := apipolicy.NewApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue") - -payload := apipolicy.PolicyContract{ - // ... -} - - -read, err := client.CreateOrUpdate(ctx, id, payload, apipolicy.DefaultCreateOrUpdateOperationOptions()) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `ApiPolicyClient.Delete` - -```go -ctx := context.TODO() -id := apipolicy.NewApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue") - -read, err := client.Delete(ctx, id, apipolicy.DefaultDeleteOperationOptions()) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `ApiPolicyClient.Get` - -```go -ctx := context.TODO() -id := apipolicy.NewApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue") - -read, err := client.Get(ctx, id, apipolicy.DefaultGetOperationOptions()) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `ApiPolicyClient.GetEntityTag` - -```go -ctx := context.TODO() -id := apipolicy.NewApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue") - -read, err := client.GetEntityTag(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `ApiPolicyClient.ListByApi` - -```go -ctx := context.TODO() -id := apipolicy.NewApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue") - -// alternatively `client.ListByApi(ctx, id)` can be used to do batched pagination -items, err := client.ListByApiComplete(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/apimanagement/2022-08-01/apirelease/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apirelease/README.md deleted file mode 100644 index e76336017b17..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apirelease/README.md +++ /dev/null @@ -1,127 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apirelease` Documentation - -The `apirelease` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2022-08-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/apimanagement/2022-08-01/apirelease" -``` - - -### Client Initialization - -```go -client := apirelease.NewApiReleaseClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `ApiReleaseClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := apirelease.NewReleaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue", "releaseIdValue") - -payload := apirelease.ApiReleaseContract{ - // ... -} - - -read, err := client.CreateOrUpdate(ctx, id, payload, apirelease.DefaultCreateOrUpdateOperationOptions()) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `ApiReleaseClient.Delete` - -```go -ctx := context.TODO() -id := apirelease.NewReleaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue", "releaseIdValue") - -read, err := client.Delete(ctx, id, apirelease.DefaultDeleteOperationOptions()) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `ApiReleaseClient.Get` - -```go -ctx := context.TODO() -id := apirelease.NewReleaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue", "releaseIdValue") - -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: `ApiReleaseClient.GetEntityTag` - -```go -ctx := context.TODO() -id := apirelease.NewReleaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue", "releaseIdValue") - -read, err := client.GetEntityTag(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `ApiReleaseClient.ListByService` - -```go -ctx := context.TODO() -id := apirelease.NewApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue") - -// alternatively `client.ListByService(ctx, id, apirelease.DefaultListByServiceOperationOptions())` can be used to do batched pagination -items, err := client.ListByServiceComplete(ctx, id, apirelease.DefaultListByServiceOperationOptions()) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `ApiReleaseClient.Update` - -```go -ctx := context.TODO() -id := apirelease.NewReleaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue", "releaseIdValue") - -payload := apirelease.ApiReleaseContract{ - // ... -} - - -read, err := client.Update(ctx, id, payload, apirelease.DefaultUpdateOperationOptions()) -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/apimanagement/2022-08-01/apischema/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apischema/README.md deleted file mode 100644 index b2a2be630c40..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apischema/README.md +++ /dev/null @@ -1,102 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apischema` Documentation - -The `apischema` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2022-08-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/apimanagement/2022-08-01/apischema" -``` - - -### Client Initialization - -```go -client := apischema.NewApiSchemaClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `ApiSchemaClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := apischema.NewApiSchemaID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue", "schemaIdValue") - -payload := apischema.SchemaContract{ - // ... -} - - -if err := client.CreateOrUpdateThenPoll(ctx, id, payload, apischema.DefaultCreateOrUpdateOperationOptions()); err != nil { - // handle the error -} -``` - - -### Example Usage: `ApiSchemaClient.Delete` - -```go -ctx := context.TODO() -id := apischema.NewApiSchemaID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue", "schemaIdValue") - -read, err := client.Delete(ctx, id, apischema.DefaultDeleteOperationOptions()) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `ApiSchemaClient.Get` - -```go -ctx := context.TODO() -id := apischema.NewApiSchemaID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue", "schemaIdValue") - -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: `ApiSchemaClient.GetEntityTag` - -```go -ctx := context.TODO() -id := apischema.NewApiSchemaID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue", "schemaIdValue") - -read, err := client.GetEntityTag(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `ApiSchemaClient.ListByApi` - -```go -ctx := context.TODO() -id := apischema.NewApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue") - -// alternatively `client.ListByApi(ctx, id, apischema.DefaultListByApiOperationOptions())` can be used to do batched pagination -items, err := client.ListByApiComplete(ctx, id, apischema.DefaultListByApiOperationOptions()) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apiversionset/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apiversionset/README.md deleted file mode 100644 index 67c5bcf07120..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apiversionset/README.md +++ /dev/null @@ -1,111 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apiversionset` Documentation - -The `apiversionset` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2022-08-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/apimanagement/2022-08-01/apiversionset" -``` - - -### Client Initialization - -```go -client := apiversionset.NewApiVersionSetClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `ApiVersionSetClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := apiversionset.NewApiVersionSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "versionSetIdValue") - -payload := apiversionset.ApiVersionSetContract{ - // ... -} - - -read, err := client.CreateOrUpdate(ctx, id, payload, apiversionset.DefaultCreateOrUpdateOperationOptions()) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `ApiVersionSetClient.Get` - -```go -ctx := context.TODO() -id := apiversionset.NewApiVersionSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "versionSetIdValue") - -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: `ApiVersionSetClient.GetEntityTag` - -```go -ctx := context.TODO() -id := apiversionset.NewApiVersionSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "versionSetIdValue") - -read, err := client.GetEntityTag(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `ApiVersionSetClient.ListByService` - -```go -ctx := context.TODO() -id := apiversionset.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue") - -// alternatively `client.ListByService(ctx, id, apiversionset.DefaultListByServiceOperationOptions())` can be used to do batched pagination -items, err := client.ListByServiceComplete(ctx, id, apiversionset.DefaultListByServiceOperationOptions()) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `ApiVersionSetClient.Update` - -```go -ctx := context.TODO() -id := apiversionset.NewApiVersionSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "versionSetIdValue") - -payload := apiversionset.ApiVersionSetUpdateParameters{ - // ... -} - - -read, err := client.Update(ctx, id, payload, apiversionset.DefaultUpdateOperationOptions()) -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/apimanagement/2022-08-01/backend/model_backendcontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/backend/model_backendcontractproperties.go deleted file mode 100644 index 60018064dc36..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/backend/model_backendcontractproperties.go +++ /dev/null @@ -1,16 +0,0 @@ -package backend - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type BackendContractProperties struct { - Credentials *BackendCredentialsContract `json:"credentials,omitempty"` - Description *string `json:"description,omitempty"` - Properties *BackendProperties `json:"properties,omitempty"` - Protocol BackendProtocol `json:"protocol"` - Proxy *BackendProxyContract `json:"proxy,omitempty"` - ResourceId *string `json:"resourceId,omitempty"` - Title *string `json:"title,omitempty"` - Tls *BackendTlsProperties `json:"tls,omitempty"` - Url string `json:"url"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/backend/model_backendupdateparameterproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/backend/model_backendupdateparameterproperties.go deleted file mode 100644 index c2a45fb91601..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/backend/model_backendupdateparameterproperties.go +++ /dev/null @@ -1,16 +0,0 @@ -package backend - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type BackendUpdateParameterProperties struct { - Credentials *BackendCredentialsContract `json:"credentials,omitempty"` - Description *string `json:"description,omitempty"` - Properties *BackendProperties `json:"properties,omitempty"` - Protocol *BackendProtocol `json:"protocol,omitempty"` - Proxy *BackendProxyContract `json:"proxy,omitempty"` - ResourceId *string `json:"resourceId,omitempty"` - Title *string `json:"title,omitempty"` - Tls *BackendTlsProperties `json:"tls,omitempty"` - Url *string `json:"url,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/group/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/group/README.md deleted file mode 100644 index ec143da102b0..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/group/README.md +++ /dev/null @@ -1,127 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/group` Documentation - -The `group` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2022-08-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/apimanagement/2022-08-01/group" -``` - - -### Client Initialization - -```go -client := group.NewGroupClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `GroupClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := group.NewGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "groupIdValue") - -payload := group.GroupCreateParameters{ - // ... -} - - -read, err := client.CreateOrUpdate(ctx, id, payload, group.DefaultCreateOrUpdateOperationOptions()) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `GroupClient.Delete` - -```go -ctx := context.TODO() -id := group.NewGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "groupIdValue") - -read, err := client.Delete(ctx, id, group.DefaultDeleteOperationOptions()) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `GroupClient.Get` - -```go -ctx := context.TODO() -id := group.NewGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "groupIdValue") - -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: `GroupClient.GetEntityTag` - -```go -ctx := context.TODO() -id := group.NewGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "groupIdValue") - -read, err := client.GetEntityTag(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `GroupClient.ListByService` - -```go -ctx := context.TODO() -id := group.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue") - -// alternatively `client.ListByService(ctx, id, group.DefaultListByServiceOperationOptions())` can be used to do batched pagination -items, err := client.ListByServiceComplete(ctx, id, group.DefaultListByServiceOperationOptions()) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `GroupClient.Update` - -```go -ctx := context.TODO() -id := group.NewGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "groupIdValue") - -payload := group.GroupUpdateParameters{ - // ... -} - - -read, err := client.Update(ctx, id, payload, group.DefaultUpdateOperationOptions()) -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/apimanagement/2022-08-01/namedvalue/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/namedvalue/README.md deleted file mode 100644 index 8052dc0d8934..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/namedvalue/README.md +++ /dev/null @@ -1,147 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/namedvalue` Documentation - -The `namedvalue` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2022-08-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/apimanagement/2022-08-01/namedvalue" -``` - - -### Client Initialization - -```go -client := namedvalue.NewNamedValueClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `NamedValueClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := namedvalue.NewNamedValueID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "namedValueIdValue") - -payload := namedvalue.NamedValueCreateContract{ - // ... -} - - -if err := client.CreateOrUpdateThenPoll(ctx, id, payload, namedvalue.DefaultCreateOrUpdateOperationOptions()); err != nil { - // handle the error -} -``` - - -### Example Usage: `NamedValueClient.Delete` - -```go -ctx := context.TODO() -id := namedvalue.NewNamedValueID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "namedValueIdValue") - -read, err := client.Delete(ctx, id, namedvalue.DefaultDeleteOperationOptions()) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `NamedValueClient.Get` - -```go -ctx := context.TODO() -id := namedvalue.NewNamedValueID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "namedValueIdValue") - -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: `NamedValueClient.GetEntityTag` - -```go -ctx := context.TODO() -id := namedvalue.NewNamedValueID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "namedValueIdValue") - -read, err := client.GetEntityTag(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `NamedValueClient.ListByService` - -```go -ctx := context.TODO() -id := namedvalue.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue") - -// alternatively `client.ListByService(ctx, id, namedvalue.DefaultListByServiceOperationOptions())` can be used to do batched pagination -items, err := client.ListByServiceComplete(ctx, id, namedvalue.DefaultListByServiceOperationOptions()) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `NamedValueClient.ListValue` - -```go -ctx := context.TODO() -id := namedvalue.NewNamedValueID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "namedValueIdValue") - -read, err := client.ListValue(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `NamedValueClient.RefreshSecret` - -```go -ctx := context.TODO() -id := namedvalue.NewNamedValueID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "namedValueIdValue") - -if err := client.RefreshSecretThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `NamedValueClient.Update` - -```go -ctx := context.TODO() -id := namedvalue.NewNamedValueID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "namedValueIdValue") - -payload := namedvalue.NamedValueUpdateParameters{ - // ... -} - - -if err := client.UpdateThenPoll(ctx, id, payload, namedvalue.DefaultUpdateOperationOptions()); err != nil { - // handle the error -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/namedvalue/model_namedvaluecontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/namedvalue/model_namedvaluecontractproperties.go deleted file mode 100644 index e07d3d63fc51..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/namedvalue/model_namedvaluecontractproperties.go +++ /dev/null @@ -1,12 +0,0 @@ -package namedvalue - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NamedValueContractProperties struct { - DisplayName string `json:"displayName"` - KeyVault *KeyVaultContractProperties `json:"keyVault,omitempty"` - Secret *bool `json:"secret,omitempty"` - Tags *[]string `json:"tags,omitempty"` - Value *string `json:"value,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policyfragment/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policyfragment/README.md deleted file mode 100644 index 5aaf6a77d0bc..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policyfragment/README.md +++ /dev/null @@ -1,119 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policyfragment` Documentation - -The `policyfragment` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2022-08-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/apimanagement/2022-08-01/policyfragment" -``` - - -### Client Initialization - -```go -client := policyfragment.NewPolicyFragmentClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `PolicyFragmentClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := policyfragment.NewPolicyFragmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "policyFragmentValue") - -payload := policyfragment.PolicyFragmentContract{ - // ... -} - - -if err := client.CreateOrUpdateThenPoll(ctx, id, payload, policyfragment.DefaultCreateOrUpdateOperationOptions()); err != nil { - // handle the error -} -``` - - -### Example Usage: `PolicyFragmentClient.Delete` - -```go -ctx := context.TODO() -id := policyfragment.NewPolicyFragmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "policyFragmentValue") - -read, err := client.Delete(ctx, id, policyfragment.DefaultDeleteOperationOptions()) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `PolicyFragmentClient.Get` - -```go -ctx := context.TODO() -id := policyfragment.NewPolicyFragmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "policyFragmentValue") - -read, err := client.Get(ctx, id, policyfragment.DefaultGetOperationOptions()) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `PolicyFragmentClient.GetEntityTag` - -```go -ctx := context.TODO() -id := policyfragment.NewPolicyFragmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "policyFragmentValue") - -read, err := client.GetEntityTag(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `PolicyFragmentClient.ListByService` - -```go -ctx := context.TODO() -id := policyfragment.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue") - -// alternatively `client.ListByService(ctx, id, policyfragment.DefaultListByServiceOperationOptions())` can be used to do batched pagination -items, err := client.ListByServiceComplete(ctx, id, policyfragment.DefaultListByServiceOperationOptions()) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `PolicyFragmentClient.ListReferences` - -```go -ctx := context.TODO() -id := policyfragment.NewPolicyFragmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "policyFragmentValue") - -// alternatively `client.ListReferences(ctx, id, policyfragment.DefaultListReferencesOperationOptions())` can be used to do batched pagination -items, err := client.ListReferencesComplete(ctx, id, policyfragment.DefaultListReferencesOperationOptions()) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policyfragment/model_policyfragmentcontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policyfragment/model_policyfragmentcontractproperties.go deleted file mode 100644 index db3544af7a5e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policyfragment/model_policyfragmentcontractproperties.go +++ /dev/null @@ -1,10 +0,0 @@ -package policyfragment - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PolicyFragmentContractProperties struct { - Description *string `json:"description,omitempty"` - Format *PolicyFragmentContentFormat `json:"format,omitempty"` - Value string `json:"value"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/product/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/product/README.md deleted file mode 100644 index 81ce8c2d03e2..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/product/README.md +++ /dev/null @@ -1,127 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/product` Documentation - -The `product` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2022-08-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/apimanagement/2022-08-01/product" -``` - - -### Client Initialization - -```go -client := product.NewProductClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `ProductClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := product.NewProductID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "productIdValue") - -payload := product.ProductContract{ - // ... -} - - -read, err := client.CreateOrUpdate(ctx, id, payload, product.DefaultCreateOrUpdateOperationOptions()) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `ProductClient.Delete` - -```go -ctx := context.TODO() -id := product.NewProductID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "productIdValue") - -read, err := client.Delete(ctx, id, product.DefaultDeleteOperationOptions()) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `ProductClient.Get` - -```go -ctx := context.TODO() -id := product.NewProductID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "productIdValue") - -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: `ProductClient.GetEntityTag` - -```go -ctx := context.TODO() -id := product.NewProductID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "productIdValue") - -read, err := client.GetEntityTag(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `ProductClient.ListByService` - -```go -ctx := context.TODO() -id := product.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue") - -// alternatively `client.ListByService(ctx, id, product.DefaultListByServiceOperationOptions())` can be used to do batched pagination -items, err := client.ListByServiceComplete(ctx, id, product.DefaultListByServiceOperationOptions()) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `ProductClient.Update` - -```go -ctx := context.TODO() -id := product.NewProductID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "productIdValue") - -payload := product.ProductUpdateParameters{ - // ... -} - - -read, err := client.Update(ctx, id, payload, product.DefaultUpdateOperationOptions()) -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/apimanagement/2022-08-01/productpolicy/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productpolicy/README.md deleted file mode 100644 index cdedda4c3ef1..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productpolicy/README.md +++ /dev/null @@ -1,106 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productpolicy` Documentation - -The `productpolicy` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2022-08-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/apimanagement/2022-08-01/productpolicy" -``` - - -### Client Initialization - -```go -client := productpolicy.NewProductPolicyClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `ProductPolicyClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := productpolicy.NewProductID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "productIdValue") - -payload := productpolicy.PolicyContract{ - // ... -} - - -read, err := client.CreateOrUpdate(ctx, id, payload, productpolicy.DefaultCreateOrUpdateOperationOptions()) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `ProductPolicyClient.Delete` - -```go -ctx := context.TODO() -id := productpolicy.NewProductID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "productIdValue") - -read, err := client.Delete(ctx, id, productpolicy.DefaultDeleteOperationOptions()) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `ProductPolicyClient.Get` - -```go -ctx := context.TODO() -id := productpolicy.NewProductID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "productIdValue") - -read, err := client.Get(ctx, id, productpolicy.DefaultGetOperationOptions()) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `ProductPolicyClient.GetEntityTag` - -```go -ctx := context.TODO() -id := productpolicy.NewProductID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "productIdValue") - -read, err := client.GetEntityTag(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `ProductPolicyClient.ListByProduct` - -```go -ctx := context.TODO() -id := productpolicy.NewProductID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "productIdValue") - -// alternatively `client.ListByProduct(ctx, id)` can be used to do batched pagination -items, err := client.ListByProductComplete(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/apimanagement/2022-08-01/schema/model_globalschemacontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/schema/model_globalschemacontractproperties.go deleted file mode 100644 index 416785819ada..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/schema/model_globalschemacontractproperties.go +++ /dev/null @@ -1,11 +0,0 @@ -package schema - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type GlobalSchemaContractProperties struct { - Description *string `json:"description,omitempty"` - Document *interface{} `json:"document,omitempty"` - SchemaType SchemaType `json:"schemaType"` - Value *interface{} `json:"value,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/README.md new file mode 100644 index 000000000000..dd3d160ceb09 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/README.md @@ -0,0 +1,222 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api` Documentation + +The `api` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2023-05-01-preview`). + +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/apimanagement/2023-05-01-preview/api" +``` + + +### Client Initialization + +```go +client := api.NewApiClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `ApiClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := api.NewApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue") + +payload := api.ApiCreateOrUpdateParameter{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload, api.DefaultCreateOrUpdateOperationOptions()); err != nil { + // handle the error +} +``` + + +### Example Usage: `ApiClient.Delete` + +```go +ctx := context.TODO() +id := api.NewApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue") + +if err := client.DeleteThenPoll(ctx, id, api.DefaultDeleteOperationOptions()); err != nil { + // handle the error +} +``` + + +### Example Usage: `ApiClient.Get` + +```go +ctx := context.TODO() +id := api.NewApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue") + +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: `ApiClient.GetEntityTag` + +```go +ctx := context.TODO() +id := api.NewApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue") + +read, err := client.GetEntityTag(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ApiClient.ListByService` + +```go +ctx := context.TODO() +id := api.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue") + +// alternatively `client.ListByService(ctx, id, api.DefaultListByServiceOperationOptions())` can be used to do batched pagination +items, err := client.ListByServiceComplete(ctx, id, api.DefaultListByServiceOperationOptions()) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `ApiClient.Update` + +```go +ctx := context.TODO() +id := api.NewApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue") + +payload := api.ApiUpdateContract{ + // ... +} + + +read, err := client.Update(ctx, id, payload, api.DefaultUpdateOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ApiClient.WorkspaceApiCreateOrUpdate` + +```go +ctx := context.TODO() +id := api.NewWorkspaceApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "apiIdValue") + +payload := api.ApiCreateOrUpdateParameter{ + // ... +} + + +if err := client.WorkspaceApiCreateOrUpdateThenPoll(ctx, id, payload, api.DefaultWorkspaceApiCreateOrUpdateOperationOptions()); err != nil { + // handle the error +} +``` + + +### Example Usage: `ApiClient.WorkspaceApiDelete` + +```go +ctx := context.TODO() +id := api.NewWorkspaceApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "apiIdValue") + +read, err := client.WorkspaceApiDelete(ctx, id, api.DefaultWorkspaceApiDeleteOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ApiClient.WorkspaceApiGet` + +```go +ctx := context.TODO() +id := api.NewWorkspaceApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "apiIdValue") + +read, err := client.WorkspaceApiGet(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ApiClient.WorkspaceApiGetEntityTag` + +```go +ctx := context.TODO() +id := api.NewWorkspaceApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "apiIdValue") + +read, err := client.WorkspaceApiGetEntityTag(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ApiClient.WorkspaceApiListByService` + +```go +ctx := context.TODO() +id := api.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue") + +// alternatively `client.WorkspaceApiListByService(ctx, id, api.DefaultWorkspaceApiListByServiceOperationOptions())` can be used to do batched pagination +items, err := client.WorkspaceApiListByServiceComplete(ctx, id, api.DefaultWorkspaceApiListByServiceOperationOptions()) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `ApiClient.WorkspaceApiUpdate` + +```go +ctx := context.TODO() +id := api.NewWorkspaceApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "apiIdValue") + +payload := api.ApiUpdateContract{ + // ... +} + + +read, err := client.WorkspaceApiUpdate(ctx, id, payload, api.DefaultWorkspaceApiUpdateOperationOptions()) +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/apimanagement/2022-08-01/api/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/constants.go similarity index 90% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/constants.go index 534cfc958a1f..4ff3628955f9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api/constants.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/constants.go @@ -13,7 +13,9 @@ type ApiType string const ( ApiTypeGraphql ApiType = "graphql" + ApiTypeGrpc ApiType = "grpc" ApiTypeHTTP ApiType = "http" + ApiTypeOdata ApiType = "odata" ApiTypeSoap ApiType = "soap" ApiTypeWebsocket ApiType = "websocket" ) @@ -21,7 +23,9 @@ const ( func PossibleValuesForApiType() []string { return []string{ string(ApiTypeGraphql), + string(ApiTypeGrpc), string(ApiTypeHTTP), + string(ApiTypeOdata), string(ApiTypeSoap), string(ApiTypeWebsocket), } @@ -43,7 +47,9 @@ func (s *ApiType) UnmarshalJSON(bytes []byte) error { func parseApiType(input string) (*ApiType, error) { vals := map[string]ApiType{ "graphql": ApiTypeGraphql, + "grpc": ApiTypeGrpc, "http": ApiTypeHTTP, + "odata": ApiTypeOdata, "soap": ApiTypeSoap, "websocket": ApiTypeWebsocket, } @@ -101,6 +107,10 @@ type ContentFormat string const ( ContentFormatGraphqlNegativelink ContentFormat = "graphql-link" + ContentFormatGrpc ContentFormat = "grpc" + ContentFormatGrpcNegativelink ContentFormat = "grpc-link" + ContentFormatOdata ContentFormat = "odata" + ContentFormatOdataNegativelink ContentFormat = "odata-link" ContentFormatOpenapi ContentFormat = "openapi" ContentFormatOpenapiNegativelink ContentFormat = "openapi-link" ContentFormatOpenapiPositivejson ContentFormat = "openapi+json" @@ -116,6 +126,10 @@ const ( func PossibleValuesForContentFormat() []string { return []string{ string(ContentFormatGraphqlNegativelink), + string(ContentFormatGrpc), + string(ContentFormatGrpcNegativelink), + string(ContentFormatOdata), + string(ContentFormatOdataNegativelink), string(ContentFormatOpenapi), string(ContentFormatOpenapiNegativelink), string(ContentFormatOpenapiPositivejson), @@ -145,6 +159,10 @@ func (s *ContentFormat) UnmarshalJSON(bytes []byte) error { func parseContentFormat(input string) (*ContentFormat, error) { vals := map[string]ContentFormat{ "graphql-link": ContentFormatGraphqlNegativelink, + "grpc": ContentFormatGrpc, + "grpc-link": ContentFormatGrpcNegativelink, + "odata": ContentFormatOdata, + "odata-link": ContentFormatOdataNegativelink, "openapi": ContentFormatOpenapi, "openapi-link": ContentFormatOpenapiNegativelink, "openapi+json": ContentFormatOpenapiPositivejson, @@ -216,7 +234,9 @@ type SoapApiType string const ( SoapApiTypeGraphql SoapApiType = "graphql" + SoapApiTypeGrpc SoapApiType = "grpc" SoapApiTypeHTTP SoapApiType = "http" + SoapApiTypeOdata SoapApiType = "odata" SoapApiTypeSoap SoapApiType = "soap" SoapApiTypeWebsocket SoapApiType = "websocket" ) @@ -224,7 +244,9 @@ const ( func PossibleValuesForSoapApiType() []string { return []string{ string(SoapApiTypeGraphql), + string(SoapApiTypeGrpc), string(SoapApiTypeHTTP), + string(SoapApiTypeOdata), string(SoapApiTypeSoap), string(SoapApiTypeWebsocket), } @@ -246,7 +268,9 @@ func (s *SoapApiType) UnmarshalJSON(bytes []byte) error { func parseSoapApiType(input string) (*SoapApiType, error) { vals := map[string]SoapApiType{ "graphql": SoapApiTypeGraphql, + "grpc": SoapApiTypeGrpc, "http": SoapApiTypeHTTP, + "odata": SoapApiTypeOdata, "soap": SoapApiTypeSoap, "websocket": SoapApiTypeWebsocket, } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api/id_api.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/id_api.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api/id_api.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/id_api.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api/id_service.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/id_service.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api/id_service.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/id_service.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/id_workspace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/id_workspace.go new file mode 100644 index 000000000000..33d92e28640a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/id_workspace.go @@ -0,0 +1,139 @@ +package api + +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(&WorkspaceId{}) +} + +var _ resourceids.ResourceId = &WorkspaceId{} + +// WorkspaceId is a struct representing the Resource ID for a Workspace +type WorkspaceId struct { + SubscriptionId string + ResourceGroupName string + ServiceName string + WorkspaceId string +} + +// NewWorkspaceID returns a new WorkspaceId struct +func NewWorkspaceID(subscriptionId string, resourceGroupName string, serviceName string, workspaceId string) WorkspaceId { + return WorkspaceId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + ServiceName: serviceName, + WorkspaceId: workspaceId, + } +} + +// ParseWorkspaceID parses 'input' into a WorkspaceId +func ParseWorkspaceID(input string) (*WorkspaceId, error) { + parser := resourceids.NewParserFromResourceIdType(&WorkspaceId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := WorkspaceId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseWorkspaceIDInsensitively parses 'input' case-insensitively into a WorkspaceId +// note: this method should only be used for API response data and not user input +func ParseWorkspaceIDInsensitively(input string) (*WorkspaceId, error) { + parser := resourceids.NewParserFromResourceIdType(&WorkspaceId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := WorkspaceId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *WorkspaceId) 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.ServiceName, ok = input.Parsed["serviceName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "serviceName", input) + } + + if id.WorkspaceId, ok = input.Parsed["workspaceId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "workspaceId", input) + } + + return nil +} + +// ValidateWorkspaceID checks that 'input' can be parsed as a Workspace ID +func ValidateWorkspaceID(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 := ParseWorkspaceID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Workspace ID +func (id WorkspaceId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.ApiManagement/service/%s/workspaces/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.ServiceName, id.WorkspaceId) +} + +// Segments returns a slice of Resource ID Segments which comprise this Workspace ID +func (id WorkspaceId) 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("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), + resourceids.StaticSegment("staticService", "service", "service"), + resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), + resourceids.UserSpecifiedSegment("workspaceId", "workspaceIdValue"), + } +} + +// String returns a human-readable description of this Workspace ID +func (id WorkspaceId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Service Name: %q", id.ServiceName), + fmt.Sprintf("Workspace: %q", id.WorkspaceId), + } + return fmt.Sprintf("Workspace (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/id_workspaceapi.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/id_workspaceapi.go new file mode 100644 index 000000000000..5d2d28b9cafe --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/id_workspaceapi.go @@ -0,0 +1,148 @@ +package api + +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(&WorkspaceApiId{}) +} + +var _ resourceids.ResourceId = &WorkspaceApiId{} + +// WorkspaceApiId is a struct representing the Resource ID for a Workspace Api +type WorkspaceApiId struct { + SubscriptionId string + ResourceGroupName string + ServiceName string + WorkspaceId string + ApiId string +} + +// NewWorkspaceApiID returns a new WorkspaceApiId struct +func NewWorkspaceApiID(subscriptionId string, resourceGroupName string, serviceName string, workspaceId string, apiId string) WorkspaceApiId { + return WorkspaceApiId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + ServiceName: serviceName, + WorkspaceId: workspaceId, + ApiId: apiId, + } +} + +// ParseWorkspaceApiID parses 'input' into a WorkspaceApiId +func ParseWorkspaceApiID(input string) (*WorkspaceApiId, error) { + parser := resourceids.NewParserFromResourceIdType(&WorkspaceApiId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := WorkspaceApiId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseWorkspaceApiIDInsensitively parses 'input' case-insensitively into a WorkspaceApiId +// note: this method should only be used for API response data and not user input +func ParseWorkspaceApiIDInsensitively(input string) (*WorkspaceApiId, error) { + parser := resourceids.NewParserFromResourceIdType(&WorkspaceApiId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := WorkspaceApiId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *WorkspaceApiId) 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.ServiceName, ok = input.Parsed["serviceName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "serviceName", input) + } + + if id.WorkspaceId, ok = input.Parsed["workspaceId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "workspaceId", input) + } + + if id.ApiId, ok = input.Parsed["apiId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "apiId", input) + } + + return nil +} + +// ValidateWorkspaceApiID checks that 'input' can be parsed as a Workspace Api ID +func ValidateWorkspaceApiID(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 := ParseWorkspaceApiID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Workspace Api ID +func (id WorkspaceApiId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.ApiManagement/service/%s/workspaces/%s/apis/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.ServiceName, id.WorkspaceId, id.ApiId) +} + +// Segments returns a slice of Resource ID Segments which comprise this Workspace Api ID +func (id WorkspaceApiId) 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("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), + resourceids.StaticSegment("staticService", "service", "service"), + resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), + resourceids.UserSpecifiedSegment("workspaceId", "workspaceIdValue"), + resourceids.StaticSegment("staticApis", "apis", "apis"), + resourceids.UserSpecifiedSegment("apiId", "apiIdValue"), + } +} + +// String returns a human-readable description of this Workspace Api ID +func (id WorkspaceApiId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Service Name: %q", id.ServiceName), + fmt.Sprintf("Workspace: %q", id.WorkspaceId), + fmt.Sprintf("Api: %q", id.ApiId), + } + return fmt.Sprintf("Workspace Api (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/method_createorupdate.go similarity index 99% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/method_createorupdate.go index af3e5430ecfe..b95d58398466 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/method_createorupdate.go @@ -53,7 +53,6 @@ func (c ApiClient) CreateOrUpdate(ctx context.Context, id ApiId, input ApiCreate opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ - http.StatusAccepted, http.StatusCreated, http.StatusOK, }, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/method_delete.go similarity index 71% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/method_delete.go index fbc43278f3bb..d4625ea7e66f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/method_delete.go @@ -6,6 +6,8 @@ import ( "net/http" "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" "github.com/hashicorp/go-azure-sdk/sdk/odata" ) @@ -13,6 +15,7 @@ import ( // 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 } @@ -52,8 +55,8 @@ func (c ApiClient) Delete(ctx context.Context, id ApiId, options DeleteOperation opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, http.StatusNoContent, - http.StatusOK, }, HttpMethod: http.MethodDelete, OptionsObject: options, @@ -75,5 +78,24 @@ func (c ApiClient) Delete(ctx context.Context, id ApiId, options DeleteOperation 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 ApiClient) DeleteThenPoll(ctx context.Context, id ApiId, 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/apimanagement/2022-08-01/api/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api/method_getentitytag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/method_getentitytag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api/method_getentitytag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/method_getentitytag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api/method_listbyservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/method_listbyservice.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api/method_listbyservice.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/method_listbyservice.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/method_update.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api/method_update.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/method_update.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/method_workspaceapicreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/method_workspaceapicreateorupdate.go new file mode 100644 index 000000000000..c7a255c688a9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/method_workspaceapicreateorupdate.go @@ -0,0 +1,103 @@ +package api + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type WorkspaceApiCreateOrUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *ApiContract +} + +type WorkspaceApiCreateOrUpdateOperationOptions struct { + IfMatch *string +} + +func DefaultWorkspaceApiCreateOrUpdateOperationOptions() WorkspaceApiCreateOrUpdateOperationOptions { + return WorkspaceApiCreateOrUpdateOperationOptions{} +} + +func (o WorkspaceApiCreateOrUpdateOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + if o.IfMatch != nil { + out.Append("If-Match", fmt.Sprintf("%v", *o.IfMatch)) + } + return &out +} + +func (o WorkspaceApiCreateOrUpdateOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + return &out +} + +func (o WorkspaceApiCreateOrUpdateOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + + return &out +} + +// WorkspaceApiCreateOrUpdate ... +func (c ApiClient) WorkspaceApiCreateOrUpdate(ctx context.Context, id WorkspaceApiId, input ApiCreateOrUpdateParameter, options WorkspaceApiCreateOrUpdateOperationOptions) (result WorkspaceApiCreateOrUpdateOperationResponse, 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 +} + +// WorkspaceApiCreateOrUpdateThenPoll performs WorkspaceApiCreateOrUpdate then polls until it's completed +func (c ApiClient) WorkspaceApiCreateOrUpdateThenPoll(ctx context.Context, id WorkspaceApiId, input ApiCreateOrUpdateParameter, options WorkspaceApiCreateOrUpdateOperationOptions) error { + result, err := c.WorkspaceApiCreateOrUpdate(ctx, id, input, options) + if err != nil { + return fmt.Errorf("performing WorkspaceApiCreateOrUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after WorkspaceApiCreateOrUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/method_workspaceapidelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/method_workspaceapidelete.go new file mode 100644 index 000000000000..443935452090 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/method_workspaceapidelete.go @@ -0,0 +1,79 @@ +package api + +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 WorkspaceApiDeleteOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +type WorkspaceApiDeleteOperationOptions struct { + DeleteRevisions *bool + IfMatch *string +} + +func DefaultWorkspaceApiDeleteOperationOptions() WorkspaceApiDeleteOperationOptions { + return WorkspaceApiDeleteOperationOptions{} +} + +func (o WorkspaceApiDeleteOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + if o.IfMatch != nil { + out.Append("If-Match", fmt.Sprintf("%v", *o.IfMatch)) + } + return &out +} + +func (o WorkspaceApiDeleteOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + return &out +} + +func (o WorkspaceApiDeleteOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.DeleteRevisions != nil { + out.Append("deleteRevisions", fmt.Sprintf("%v", *o.DeleteRevisions)) + } + return &out +} + +// WorkspaceApiDelete ... +func (c ApiClient) WorkspaceApiDelete(ctx context.Context, id WorkspaceApiId, options WorkspaceApiDeleteOperationOptions) (result WorkspaceApiDeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + 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 + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/method_workspaceapiget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/method_workspaceapiget.go new file mode 100644 index 000000000000..220b742d573f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/method_workspaceapiget.go @@ -0,0 +1,54 @@ +package api + +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 WorkspaceApiGetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *ApiContract +} + +// WorkspaceApiGet ... +func (c ApiClient) WorkspaceApiGet(ctx context.Context, id WorkspaceApiId) (result WorkspaceApiGetOperationResponse, 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 ApiContract + 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/apimanagement/2023-05-01-preview/api/method_workspaceapigetentitytag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/method_workspaceapigetentitytag.go new file mode 100644 index 000000000000..dc7682fdf4eb --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/method_workspaceapigetentitytag.go @@ -0,0 +1,46 @@ +package api + +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 WorkspaceApiGetEntityTagOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// WorkspaceApiGetEntityTag ... +func (c ApiClient) WorkspaceApiGetEntityTag(ctx context.Context, id WorkspaceApiId) (result WorkspaceApiGetEntityTagOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodHead, + 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/apimanagement/2023-05-01-preview/api/method_workspaceapilistbyservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/method_workspaceapilistbyservice.go new file mode 100644 index 000000000000..aeed0e700771 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/method_workspaceapilistbyservice.go @@ -0,0 +1,149 @@ +package api + +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 WorkspaceApiListByServiceOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]ApiContract +} + +type WorkspaceApiListByServiceCompleteResult struct { + LatestHttpResponse *http.Response + Items []ApiContract +} + +type WorkspaceApiListByServiceOperationOptions struct { + ExpandApiVersionSet *bool + Filter *string + Skip *int64 + Tags *string + Top *int64 +} + +func DefaultWorkspaceApiListByServiceOperationOptions() WorkspaceApiListByServiceOperationOptions { + return WorkspaceApiListByServiceOperationOptions{} +} + +func (o WorkspaceApiListByServiceOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o WorkspaceApiListByServiceOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + return &out +} + +func (o WorkspaceApiListByServiceOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.ExpandApiVersionSet != nil { + out.Append("expandApiVersionSet", fmt.Sprintf("%v", *o.ExpandApiVersionSet)) + } + if o.Filter != nil { + out.Append("$filter", fmt.Sprintf("%v", *o.Filter)) + } + if o.Skip != nil { + out.Append("$skip", fmt.Sprintf("%v", *o.Skip)) + } + if o.Tags != nil { + out.Append("tags", fmt.Sprintf("%v", *o.Tags)) + } + if o.Top != nil { + out.Append("$top", fmt.Sprintf("%v", *o.Top)) + } + return &out +} + +type WorkspaceApiListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkspaceApiListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// WorkspaceApiListByService ... +func (c ApiClient) WorkspaceApiListByService(ctx context.Context, id WorkspaceId, options WorkspaceApiListByServiceOperationOptions) (result WorkspaceApiListByServiceOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + OptionsObject: options, + Pager: &WorkspaceApiListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/apis", 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 *[]ApiContract `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// WorkspaceApiListByServiceComplete retrieves all the results into a single object +func (c ApiClient) WorkspaceApiListByServiceComplete(ctx context.Context, id WorkspaceId, options WorkspaceApiListByServiceOperationOptions) (WorkspaceApiListByServiceCompleteResult, error) { + return c.WorkspaceApiListByServiceCompleteMatchingPredicate(ctx, id, options, ApiContractOperationPredicate{}) +} + +// WorkspaceApiListByServiceCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c ApiClient) WorkspaceApiListByServiceCompleteMatchingPredicate(ctx context.Context, id WorkspaceId, options WorkspaceApiListByServiceOperationOptions, predicate ApiContractOperationPredicate) (result WorkspaceApiListByServiceCompleteResult, err error) { + items := make([]ApiContract, 0) + + resp, err := c.WorkspaceApiListByService(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 = WorkspaceApiListByServiceCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/method_workspaceapiupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/method_workspaceapiupdate.go new file mode 100644 index 000000000000..25f72466ee31 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/method_workspaceapiupdate.go @@ -0,0 +1,87 @@ +package api + +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 WorkspaceApiUpdateOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *ApiContract +} + +type WorkspaceApiUpdateOperationOptions struct { + IfMatch *string +} + +func DefaultWorkspaceApiUpdateOperationOptions() WorkspaceApiUpdateOperationOptions { + return WorkspaceApiUpdateOperationOptions{} +} + +func (o WorkspaceApiUpdateOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + if o.IfMatch != nil { + out.Append("If-Match", fmt.Sprintf("%v", *o.IfMatch)) + } + return &out +} + +func (o WorkspaceApiUpdateOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + return &out +} + +func (o WorkspaceApiUpdateOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + + return &out +} + +// WorkspaceApiUpdate ... +func (c ApiClient) WorkspaceApiUpdate(ctx context.Context, id WorkspaceApiId, input ApiUpdateContract, options WorkspaceApiUpdateOperationOptions) (result WorkspaceApiUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPatch, + 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 ApiContract + 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/apimanagement/2022-08-01/api/model_apicontactinformation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/model_apicontactinformation.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api/model_apicontactinformation.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/model_apicontactinformation.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api/model_apicontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/model_apicontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api/model_apicontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/model_apicontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api/model_apicontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/model_apicontractproperties.go similarity index 95% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api/model_apicontractproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/model_apicontractproperties.go index 642bf4735e2f..50984f3b2cbb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api/model_apicontractproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/model_apicontractproperties.go @@ -19,6 +19,7 @@ type ApiContractProperties struct { License *ApiLicenseInformation `json:"license,omitempty"` Path string `json:"path"` Protocols *[]Protocol `json:"protocols,omitempty"` + ProvisioningState *string `json:"provisioningState,omitempty"` ServiceUrl *string `json:"serviceUrl,omitempty"` SourceApiId *string `json:"sourceApiId,omitempty"` SubscriptionKeyParameterNames *SubscriptionKeyParameterNamesContract `json:"subscriptionKeyParameterNames,omitempty"` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api/model_apicontractupdateproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/model_apicontractupdateproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api/model_apicontractupdateproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/model_apicontractupdateproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api/model_apicreateorupdateparameter.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/model_apicreateorupdateparameter.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api/model_apicreateorupdateparameter.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/model_apicreateorupdateparameter.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api/model_apicreateorupdateproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/model_apicreateorupdateproperties.go similarity index 96% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api/model_apicreateorupdateproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/model_apicreateorupdateproperties.go index c5505b1bd80f..000abe8abbd9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api/model_apicreateorupdateproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/model_apicreateorupdateproperties.go @@ -21,6 +21,7 @@ type ApiCreateOrUpdateProperties struct { License *ApiLicenseInformation `json:"license,omitempty"` Path string `json:"path"` Protocols *[]Protocol `json:"protocols,omitempty"` + ProvisioningState *string `json:"provisioningState,omitempty"` ServiceUrl *string `json:"serviceUrl,omitempty"` SourceApiId *string `json:"sourceApiId,omitempty"` SubscriptionKeyParameterNames *SubscriptionKeyParameterNamesContract `json:"subscriptionKeyParameterNames,omitempty"` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api/model_apicreateorupdatepropertieswsdlselector.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/model_apicreateorupdatepropertieswsdlselector.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api/model_apicreateorupdatepropertieswsdlselector.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/model_apicreateorupdatepropertieswsdlselector.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api/model_apilicenseinformation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/model_apilicenseinformation.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api/model_apilicenseinformation.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/model_apilicenseinformation.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api/model_apiupdatecontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/model_apiupdatecontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api/model_apiupdatecontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/model_apiupdatecontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api/model_apiversionsetcontractdetails.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/model_apiversionsetcontractdetails.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api/model_apiversionsetcontractdetails.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/model_apiversionsetcontractdetails.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api/model_authenticationsettingscontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/model_authenticationsettingscontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api/model_authenticationsettingscontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/model_authenticationsettingscontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api/model_oauth2authenticationsettingscontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/model_oauth2authenticationsettingscontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api/model_oauth2authenticationsettingscontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/model_oauth2authenticationsettingscontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api/model_openidauthenticationsettingscontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/model_openidauthenticationsettingscontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api/model_openidauthenticationsettingscontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/model_openidauthenticationsettingscontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api/model_subscriptionkeyparameternamescontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/model_subscriptionkeyparameternamescontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api/model_subscriptionkeyparameternamescontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/model_subscriptionkeyparameternamescontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/version.go similarity index 85% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/version.go index db2989835279..63467de04d04 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/version.go @@ -5,7 +5,7 @@ import "fmt" // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2022-08-01" +const defaultApiVersion = "2023-05-01-preview" func userAgent() string { return fmt.Sprintf("hashicorp/go-azure-sdk/api/%s", defaultApiVersion) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apidiagnostic/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic/README.md similarity index 95% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apidiagnostic/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic/README.md index 825f010afaa3..b6a2b18571ac 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apidiagnostic/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apidiagnostic` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic` Documentation -The `apidiagnostic` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2022-08-01`). +The `apidiagnostic` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2023-05-01-preview`). 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/apimanagement/2022-08-01/apidiagnostic" +import "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apidiagnostic/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apidiagnostic/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apidiagnostic/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apidiagnostic/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apidiagnostic/id_api.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic/id_api.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apidiagnostic/id_api.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic/id_api.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apidiagnostic/id_apidiagnostic.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic/id_apidiagnostic.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apidiagnostic/id_apidiagnostic.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic/id_apidiagnostic.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apidiagnostic/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apidiagnostic/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apidiagnostic/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apidiagnostic/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apidiagnostic/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apidiagnostic/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apidiagnostic/method_getentitytag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic/method_getentitytag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apidiagnostic/method_getentitytag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic/method_getentitytag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apidiagnostic/method_listbyservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic/method_listbyservice.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apidiagnostic/method_listbyservice.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic/method_listbyservice.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apidiagnostic/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic/method_update.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apidiagnostic/method_update.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic/method_update.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apidiagnostic/model_bodydiagnosticsettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic/model_bodydiagnosticsettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apidiagnostic/model_bodydiagnosticsettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic/model_bodydiagnosticsettings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apidiagnostic/model_datamasking.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic/model_datamasking.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apidiagnostic/model_datamasking.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic/model_datamasking.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apidiagnostic/model_datamaskingentity.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic/model_datamaskingentity.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apidiagnostic/model_datamaskingentity.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic/model_datamaskingentity.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apidiagnostic/model_diagnosticcontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic/model_diagnosticcontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apidiagnostic/model_diagnosticcontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic/model_diagnosticcontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apidiagnostic/model_diagnosticcontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic/model_diagnosticcontractproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apidiagnostic/model_diagnosticcontractproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic/model_diagnosticcontractproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apidiagnostic/model_httpmessagediagnostic.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic/model_httpmessagediagnostic.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apidiagnostic/model_httpmessagediagnostic.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic/model_httpmessagediagnostic.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apidiagnostic/model_pipelinediagnosticsettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic/model_pipelinediagnosticsettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apidiagnostic/model_pipelinediagnosticsettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic/model_pipelinediagnosticsettings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apidiagnostic/model_samplingsettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic/model_samplingsettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apidiagnostic/model_samplingsettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic/model_samplingsettings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apidiagnostic/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apidiagnostic/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apidiagnostic/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic/version.go similarity index 86% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apidiagnostic/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic/version.go index bcfa88408c36..c89a1c0a1659 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apidiagnostic/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic/version.go @@ -5,7 +5,7 @@ import "fmt" // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2022-08-01" +const defaultApiVersion = "2023-05-01-preview" func userAgent() string { return fmt.Sprintf("hashicorp/go-azure-sdk/apidiagnostic/%s", defaultApiVersion) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/README.md similarity index 94% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/README.md index c519646a9c8c..3b6306fa8d07 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/README.md @@ -1,7 +1,7 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice` Documentation -The `apimanagementservice` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2022-08-01`). +The `apimanagementservice` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2023-05-01-preview`). 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/apimanagement/2022-08-01/apimanagementservice" +import "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice" ``` @@ -193,7 +193,12 @@ for _, item := range items { ctx := context.TODO() id := apimanagementservice.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue") -if err := client.MigrateToStv2ThenPoll(ctx, id); err != nil { +payload := apimanagementservice.MigrateToStv2Contract{ + // ... +} + + +if err := client.MigrateToStv2ThenPoll(ctx, id, payload); err != nil { // handle the error } ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/constants.go similarity index 71% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/constants.go index d9fbce72ae6e..1883e7bcafdc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/constants.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/constants.go @@ -144,18 +144,61 @@ func parseCertificateStatus(input string) (*CertificateStatus, error) { return &out, nil } +type DeveloperPortalStatus string + +const ( + DeveloperPortalStatusDisabled DeveloperPortalStatus = "Disabled" + DeveloperPortalStatusEnabled DeveloperPortalStatus = "Enabled" +) + +func PossibleValuesForDeveloperPortalStatus() []string { + return []string{ + string(DeveloperPortalStatusDisabled), + string(DeveloperPortalStatusEnabled), + } +} + +func (s *DeveloperPortalStatus) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseDeveloperPortalStatus(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseDeveloperPortalStatus(input string) (*DeveloperPortalStatus, error) { + vals := map[string]DeveloperPortalStatus{ + "disabled": DeveloperPortalStatusDisabled, + "enabled": DeveloperPortalStatusEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := DeveloperPortalStatus(input) + return &out, nil +} + type HostnameType string const ( - HostnameTypeDeveloperPortal HostnameType = "DeveloperPortal" - HostnameTypeManagement HostnameType = "Management" - HostnameTypePortal HostnameType = "Portal" - HostnameTypeProxy HostnameType = "Proxy" - HostnameTypeScm HostnameType = "Scm" + HostnameTypeConfigurationApi HostnameType = "ConfigurationApi" + HostnameTypeDeveloperPortal HostnameType = "DeveloperPortal" + HostnameTypeManagement HostnameType = "Management" + HostnameTypePortal HostnameType = "Portal" + HostnameTypeProxy HostnameType = "Proxy" + HostnameTypeScm HostnameType = "Scm" ) func PossibleValuesForHostnameType() []string { return []string{ + string(HostnameTypeConfigurationApi), string(HostnameTypeDeveloperPortal), string(HostnameTypeManagement), string(HostnameTypePortal), @@ -179,11 +222,12 @@ func (s *HostnameType) UnmarshalJSON(bytes []byte) error { func parseHostnameType(input string) (*HostnameType, error) { vals := map[string]HostnameType{ - "developerportal": HostnameTypeDeveloperPortal, - "management": HostnameTypeManagement, - "portal": HostnameTypePortal, - "proxy": HostnameTypeProxy, - "scm": HostnameTypeScm, + "configurationapi": HostnameTypeConfigurationApi, + "developerportal": HostnameTypeDeveloperPortal, + "management": HostnameTypeManagement, + "portal": HostnameTypePortal, + "proxy": HostnameTypeProxy, + "scm": HostnameTypeScm, } if v, ok := vals[strings.ToLower(input)]; ok { return &v, nil @@ -194,6 +238,129 @@ func parseHostnameType(input string) (*HostnameType, error) { return &out, nil } +type LegacyApiState string + +const ( + LegacyApiStateDisabled LegacyApiState = "Disabled" + LegacyApiStateEnabled LegacyApiState = "Enabled" +) + +func PossibleValuesForLegacyApiState() []string { + return []string{ + string(LegacyApiStateDisabled), + string(LegacyApiStateEnabled), + } +} + +func (s *LegacyApiState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseLegacyApiState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseLegacyApiState(input string) (*LegacyApiState, error) { + vals := map[string]LegacyApiState{ + "disabled": LegacyApiStateDisabled, + "enabled": LegacyApiStateEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := LegacyApiState(input) + return &out, nil +} + +type LegacyPortalStatus string + +const ( + LegacyPortalStatusDisabled LegacyPortalStatus = "Disabled" + LegacyPortalStatusEnabled LegacyPortalStatus = "Enabled" +) + +func PossibleValuesForLegacyPortalStatus() []string { + return []string{ + string(LegacyPortalStatusDisabled), + string(LegacyPortalStatusEnabled), + } +} + +func (s *LegacyPortalStatus) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseLegacyPortalStatus(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseLegacyPortalStatus(input string) (*LegacyPortalStatus, error) { + vals := map[string]LegacyPortalStatus{ + "disabled": LegacyPortalStatusDisabled, + "enabled": LegacyPortalStatusEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := LegacyPortalStatus(input) + return &out, nil +} + +type MigrateToStv2Mode string + +const ( + MigrateToStv2ModeNewIP MigrateToStv2Mode = "NewIP" + MigrateToStv2ModePreserveIP MigrateToStv2Mode = "PreserveIp" +) + +func PossibleValuesForMigrateToStv2Mode() []string { + return []string{ + string(MigrateToStv2ModeNewIP), + string(MigrateToStv2ModePreserveIP), + } +} + +func (s *MigrateToStv2Mode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseMigrateToStv2Mode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseMigrateToStv2Mode(input string) (*MigrateToStv2Mode, error) { + vals := map[string]MigrateToStv2Mode{ + "newip": MigrateToStv2ModeNewIP, + "preserveip": MigrateToStv2ModePreserveIP, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := MigrateToStv2Mode(input) + return &out, nil +} + type NameAvailabilityReason string const ( @@ -282,10 +449,11 @@ func parseNatGatewayState(input string) (*NatGatewayState, error) { type PlatformVersion string const ( - PlatformVersionMtvOne PlatformVersion = "mtv1" - PlatformVersionStvOne PlatformVersion = "stv1" - PlatformVersionStvTwo PlatformVersion = "stv2" - PlatformVersionUndetermined PlatformVersion = "undetermined" + PlatformVersionMtvOne PlatformVersion = "mtv1" + PlatformVersionStvOne PlatformVersion = "stv1" + PlatformVersionStvTwo PlatformVersion = "stv2" + PlatformVersionStvTwoPointOne PlatformVersion = "stv2.1" + PlatformVersionUndetermined PlatformVersion = "undetermined" ) func PossibleValuesForPlatformVersion() []string { @@ -293,6 +461,7 @@ func PossibleValuesForPlatformVersion() []string { string(PlatformVersionMtvOne), string(PlatformVersionStvOne), string(PlatformVersionStvTwo), + string(PlatformVersionStvTwoPointOne), string(PlatformVersionUndetermined), } } @@ -315,6 +484,7 @@ func parsePlatformVersion(input string) (*PlatformVersion, error) { "mtv1": PlatformVersionMtvOne, "stv1": PlatformVersionStvOne, "stv2": PlatformVersionStvTwo, + "stv2.1": PlatformVersionStvTwoPointOne, "undetermined": PlatformVersionUndetermined, } if v, ok := vals[strings.ToLower(input)]; ok { @@ -414,22 +584,26 @@ func parsePublicNetworkAccess(input string) (*PublicNetworkAccess, error) { type SkuType string const ( - SkuTypeBasic SkuType = "Basic" - SkuTypeConsumption SkuType = "Consumption" - SkuTypeDeveloper SkuType = "Developer" - SkuTypeIsolated SkuType = "Isolated" - SkuTypePremium SkuType = "Premium" - SkuTypeStandard SkuType = "Standard" + SkuTypeBasic SkuType = "Basic" + SkuTypeBasicVTwo SkuType = "BasicV2" + SkuTypeConsumption SkuType = "Consumption" + SkuTypeDeveloper SkuType = "Developer" + SkuTypeIsolated SkuType = "Isolated" + SkuTypePremium SkuType = "Premium" + SkuTypeStandard SkuType = "Standard" + SkuTypeStandardVTwo SkuType = "StandardV2" ) func PossibleValuesForSkuType() []string { return []string{ string(SkuTypeBasic), + string(SkuTypeBasicVTwo), string(SkuTypeConsumption), string(SkuTypeDeveloper), string(SkuTypeIsolated), string(SkuTypePremium), string(SkuTypeStandard), + string(SkuTypeStandardVTwo), } } @@ -449,11 +623,13 @@ func (s *SkuType) UnmarshalJSON(bytes []byte) error { func parseSkuType(input string) (*SkuType, error) { vals := map[string]SkuType{ "basic": SkuTypeBasic, + "basicv2": SkuTypeBasicVTwo, "consumption": SkuTypeConsumption, "developer": SkuTypeDeveloper, "isolated": SkuTypeIsolated, "premium": SkuTypePremium, "standard": SkuTypeStandard, + "standardv2": SkuTypeStandardVTwo, } if v, ok := vals[strings.ToLower(input)]; ok { return &v, nil diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/id_service.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/id_service.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/id_service.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/id_service.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/method_applynetworkconfigurationupdates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/method_applynetworkconfigurationupdates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/method_applynetworkconfigurationupdates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/method_applynetworkconfigurationupdates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/method_backup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/method_backup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/method_backup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/method_backup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/method_checknameavailability.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/method_checknameavailability.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/method_checknameavailability.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/method_checknameavailability.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/method_getdomainownershipidentifier.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/method_getdomainownershipidentifier.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/method_getdomainownershipidentifier.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/method_getdomainownershipidentifier.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/method_getssotoken.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/method_getssotoken.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/method_getssotoken.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/method_getssotoken.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/method_listbyresourcegroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/method_listbyresourcegroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/method_listbyresourcegroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/method_migratetostv2.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/method_migratetostv2.go similarity index 86% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/method_migratetostv2.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/method_migratetostv2.go index 3653db5dd801..47361b27a184 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/method_migratetostv2.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/method_migratetostv2.go @@ -22,7 +22,7 @@ type MigrateToStv2OperationResponse struct { } // MigrateToStv2 ... -func (c ApiManagementServiceClient) MigrateToStv2(ctx context.Context, id ServiceId) (result MigrateToStv2OperationResponse, err error) { +func (c ApiManagementServiceClient) MigrateToStv2(ctx context.Context, id ServiceId, input MigrateToStv2Contract) (result MigrateToStv2OperationResponse, err error) { opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ @@ -38,6 +38,10 @@ func (c ApiManagementServiceClient) MigrateToStv2(ctx context.Context, id Servic return } + if err = req.Marshal(input); err != nil { + return + } + var resp *client.Response resp, err = req.Execute(ctx) if resp != nil { @@ -57,8 +61,8 @@ func (c ApiManagementServiceClient) MigrateToStv2(ctx context.Context, id Servic } // MigrateToStv2ThenPoll performs MigrateToStv2 then polls until it's completed -func (c ApiManagementServiceClient) MigrateToStv2ThenPoll(ctx context.Context, id ServiceId) error { - result, err := c.MigrateToStv2(ctx, id) +func (c ApiManagementServiceClient) MigrateToStv2ThenPoll(ctx context.Context, id ServiceId, input MigrateToStv2Contract) error { + result, err := c.MigrateToStv2(ctx, id, input) if err != nil { return fmt.Errorf("performing MigrateToStv2: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/method_restore.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/method_restore.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/method_restore.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/method_restore.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/method_update.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/method_update.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/method_update.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/model_additionallocation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/model_additionallocation.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/model_additionallocation.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/model_additionallocation.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/model_apimanagementserviceapplynetworkconfigurationparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/model_apimanagementserviceapplynetworkconfigurationparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/model_apimanagementserviceapplynetworkconfigurationparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/model_apimanagementserviceapplynetworkconfigurationparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/model_apimanagementservicebackuprestoreparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/model_apimanagementservicebackuprestoreparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/model_apimanagementservicebackuprestoreparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/model_apimanagementservicebackuprestoreparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/model_apimanagementservicechecknameavailabilityparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/model_apimanagementservicechecknameavailabilityparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/model_apimanagementservicechecknameavailabilityparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/model_apimanagementservicechecknameavailabilityparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/model_apimanagementservicegetdomainownershipidentifierresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/model_apimanagementservicegetdomainownershipidentifierresult.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/model_apimanagementservicegetdomainownershipidentifierresult.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/model_apimanagementservicegetdomainownershipidentifierresult.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/model_apimanagementservicegetssotokenresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/model_apimanagementservicegetssotokenresult.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/model_apimanagementservicegetssotokenresult.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/model_apimanagementservicegetssotokenresult.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/model_apimanagementservicenameavailabilityresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/model_apimanagementservicenameavailabilityresult.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/model_apimanagementservicenameavailabilityresult.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/model_apimanagementservicenameavailabilityresult.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/model_apimanagementserviceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/model_apimanagementserviceproperties.go similarity index 92% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/model_apimanagementserviceproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/model_apimanagementserviceproperties.go index 94fc6445376c..a1901e05e4fd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/model_apimanagementserviceproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/model_apimanagementserviceproperties.go @@ -13,14 +13,17 @@ type ApiManagementServiceProperties struct { AdditionalLocations *[]AdditionalLocation `json:"additionalLocations,omitempty"` ApiVersionConstraint *ApiVersionConstraint `json:"apiVersionConstraint,omitempty"` Certificates *[]CertificateConfiguration `json:"certificates,omitempty"` + ConfigurationApi *ConfigurationApi `json:"configurationApi,omitempty"` CreatedAtUtc *string `json:"createdAtUtc,omitempty"` CustomProperties *map[string]string `json:"customProperties,omitempty"` + DeveloperPortalStatus *DeveloperPortalStatus `json:"developerPortalStatus,omitempty"` DeveloperPortalUrl *string `json:"developerPortalUrl,omitempty"` DisableGateway *bool `json:"disableGateway,omitempty"` EnableClientCertificate *bool `json:"enableClientCertificate,omitempty"` GatewayRegionalUrl *string `json:"gatewayRegionalUrl,omitempty"` GatewayUrl *string `json:"gatewayUrl,omitempty"` HostnameConfigurations *[]HostnameConfiguration `json:"hostnameConfigurations,omitempty"` + LegacyPortalStatus *LegacyPortalStatus `json:"legacyPortalStatus,omitempty"` ManagementApiUrl *string `json:"managementApiUrl,omitempty"` NatGatewayState *NatGatewayState `json:"natGatewayState,omitempty"` NotificationSenderEmail *string `json:"notificationSenderEmail,omitempty"` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/model_apimanagementserviceresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/model_apimanagementserviceresource.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/model_apimanagementserviceresource.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/model_apimanagementserviceresource.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/model_apimanagementserviceskuproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/model_apimanagementserviceskuproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/model_apimanagementserviceskuproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/model_apimanagementserviceskuproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/model_apimanagementserviceupdateparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/model_apimanagementserviceupdateparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/model_apimanagementserviceupdateparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/model_apimanagementserviceupdateparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/model_apimanagementserviceupdateproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/model_apimanagementserviceupdateproperties.go similarity index 92% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/model_apimanagementserviceupdateproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/model_apimanagementserviceupdateproperties.go index 17315556d2d2..198f9bd13432 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/model_apimanagementserviceupdateproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/model_apimanagementserviceupdateproperties.go @@ -13,14 +13,17 @@ type ApiManagementServiceUpdateProperties struct { AdditionalLocations *[]AdditionalLocation `json:"additionalLocations,omitempty"` ApiVersionConstraint *ApiVersionConstraint `json:"apiVersionConstraint,omitempty"` Certificates *[]CertificateConfiguration `json:"certificates,omitempty"` + ConfigurationApi *ConfigurationApi `json:"configurationApi,omitempty"` CreatedAtUtc *string `json:"createdAtUtc,omitempty"` CustomProperties *map[string]string `json:"customProperties,omitempty"` + DeveloperPortalStatus *DeveloperPortalStatus `json:"developerPortalStatus,omitempty"` DeveloperPortalUrl *string `json:"developerPortalUrl,omitempty"` DisableGateway *bool `json:"disableGateway,omitempty"` EnableClientCertificate *bool `json:"enableClientCertificate,omitempty"` GatewayRegionalUrl *string `json:"gatewayRegionalUrl,omitempty"` GatewayUrl *string `json:"gatewayUrl,omitempty"` HostnameConfigurations *[]HostnameConfiguration `json:"hostnameConfigurations,omitempty"` + LegacyPortalStatus *LegacyPortalStatus `json:"legacyPortalStatus,omitempty"` ManagementApiUrl *string `json:"managementApiUrl,omitempty"` NatGatewayState *NatGatewayState `json:"natGatewayState,omitempty"` NotificationSenderEmail *string `json:"notificationSenderEmail,omitempty"` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/model_apiversionconstraint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/model_apiversionconstraint.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/model_apiversionconstraint.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/model_apiversionconstraint.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/model_armidwrapper.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/model_armidwrapper.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/model_armidwrapper.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/model_armidwrapper.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/model_certificateconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/model_certificateconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/model_certificateconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/model_certificateconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/model_certificateinformation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/model_certificateinformation.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/model_certificateinformation.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/model_certificateinformation.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/model_configurationapi.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/model_configurationapi.go new file mode 100644 index 000000000000..1e29f76f560c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/model_configurationapi.go @@ -0,0 +1,8 @@ +package apimanagementservice + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ConfigurationApi struct { + LegacyApi *LegacyApiState `json:"legacyApi,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/model_hostnameconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/model_hostnameconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/model_hostnameconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/model_hostnameconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/model_migratetostv2contract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/model_migratetostv2contract.go new file mode 100644 index 000000000000..7f1e4d52e3f8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/model_migratetostv2contract.go @@ -0,0 +1,8 @@ +package apimanagementservice + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type MigrateToStv2Contract struct { + Mode *MigrateToStv2Mode `json:"mode,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/model_privateendpointconnectionwrapperproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/model_privateendpointconnectionwrapperproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/model_privateendpointconnectionwrapperproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/model_privateendpointconnectionwrapperproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/model_privatelinkserviceconnectionstate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/model_privatelinkserviceconnectionstate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/model_privatelinkserviceconnectionstate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/model_privatelinkserviceconnectionstate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/model_remoteprivateendpointconnectionwrapper.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/model_remoteprivateendpointconnectionwrapper.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/model_remoteprivateendpointconnectionwrapper.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/model_remoteprivateendpointconnectionwrapper.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/model_virtualnetworkconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/model_virtualnetworkconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/model_virtualnetworkconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/model_virtualnetworkconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/version.go similarity index 87% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/version.go index 5c1a11441c13..5cf6d96bf23e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/version.go @@ -5,7 +5,7 @@ import "fmt" // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2022-08-01" +const defaultApiVersion = "2023-05-01-preview" func userAgent() string { return fmt.Sprintf("hashicorp/go-azure-sdk/apimanagementservice/%s", defaultApiVersion) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/README.md new file mode 100644 index 000000000000..43af217d2039 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/README.md @@ -0,0 +1,234 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation` Documentation + +The `apioperation` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2023-05-01-preview`). + +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/apimanagement/2023-05-01-preview/apioperation" +``` + + +### Client Initialization + +```go +client := apioperation.NewApiOperationClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `ApiOperationClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := apioperation.NewOperationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue", "operationIdValue") + +payload := apioperation.OperationContract{ + // ... +} + + +read, err := client.CreateOrUpdate(ctx, id, payload, apioperation.DefaultCreateOrUpdateOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ApiOperationClient.Delete` + +```go +ctx := context.TODO() +id := apioperation.NewOperationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue", "operationIdValue") + +read, err := client.Delete(ctx, id, apioperation.DefaultDeleteOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ApiOperationClient.Get` + +```go +ctx := context.TODO() +id := apioperation.NewOperationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue", "operationIdValue") + +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: `ApiOperationClient.GetEntityTag` + +```go +ctx := context.TODO() +id := apioperation.NewOperationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue", "operationIdValue") + +read, err := client.GetEntityTag(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ApiOperationClient.ListByApi` + +```go +ctx := context.TODO() +id := apioperation.NewApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue") + +// alternatively `client.ListByApi(ctx, id, apioperation.DefaultListByApiOperationOptions())` can be used to do batched pagination +items, err := client.ListByApiComplete(ctx, id, apioperation.DefaultListByApiOperationOptions()) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `ApiOperationClient.Update` + +```go +ctx := context.TODO() +id := apioperation.NewOperationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue", "operationIdValue") + +payload := apioperation.OperationUpdateContract{ + // ... +} + + +read, err := client.Update(ctx, id, payload, apioperation.DefaultUpdateOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ApiOperationClient.WorkspaceApiOperationCreateOrUpdate` + +```go +ctx := context.TODO() +id := apioperation.NewApiOperationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "apiIdValue", "operationIdValue") + +payload := apioperation.OperationContract{ + // ... +} + + +read, err := client.WorkspaceApiOperationCreateOrUpdate(ctx, id, payload, apioperation.DefaultWorkspaceApiOperationCreateOrUpdateOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ApiOperationClient.WorkspaceApiOperationDelete` + +```go +ctx := context.TODO() +id := apioperation.NewApiOperationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "apiIdValue", "operationIdValue") + +read, err := client.WorkspaceApiOperationDelete(ctx, id, apioperation.DefaultWorkspaceApiOperationDeleteOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ApiOperationClient.WorkspaceApiOperationGet` + +```go +ctx := context.TODO() +id := apioperation.NewApiOperationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "apiIdValue", "operationIdValue") + +read, err := client.WorkspaceApiOperationGet(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ApiOperationClient.WorkspaceApiOperationGetEntityTag` + +```go +ctx := context.TODO() +id := apioperation.NewApiOperationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "apiIdValue", "operationIdValue") + +read, err := client.WorkspaceApiOperationGetEntityTag(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ApiOperationClient.WorkspaceApiOperationListByApi` + +```go +ctx := context.TODO() +id := apioperation.NewWorkspaceApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "apiIdValue") + +// alternatively `client.WorkspaceApiOperationListByApi(ctx, id, apioperation.DefaultWorkspaceApiOperationListByApiOperationOptions())` can be used to do batched pagination +items, err := client.WorkspaceApiOperationListByApiComplete(ctx, id, apioperation.DefaultWorkspaceApiOperationListByApiOperationOptions()) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `ApiOperationClient.WorkspaceApiOperationUpdate` + +```go +ctx := context.TODO() +id := apioperation.NewApiOperationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "apiIdValue", "operationIdValue") + +payload := apioperation.OperationUpdateContract{ + // ... +} + + +read, err := client.WorkspaceApiOperationUpdate(ctx, id, payload, apioperation.DefaultWorkspaceApiOperationUpdateOperationOptions()) +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/apimanagement/2022-08-01/apioperation/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperation/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperation/id_api.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/id_api.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperation/id_api.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/id_api.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/id_apioperation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/id_apioperation.go new file mode 100644 index 000000000000..57cefcbf9203 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/id_apioperation.go @@ -0,0 +1,157 @@ +package apioperation + +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(&ApiOperationId{}) +} + +var _ resourceids.ResourceId = &ApiOperationId{} + +// ApiOperationId is a struct representing the Resource ID for a Api Operation +type ApiOperationId struct { + SubscriptionId string + ResourceGroupName string + ServiceName string + WorkspaceId string + ApiId string + OperationId string +} + +// NewApiOperationID returns a new ApiOperationId struct +func NewApiOperationID(subscriptionId string, resourceGroupName string, serviceName string, workspaceId string, apiId string, operationId string) ApiOperationId { + return ApiOperationId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + ServiceName: serviceName, + WorkspaceId: workspaceId, + ApiId: apiId, + OperationId: operationId, + } +} + +// ParseApiOperationID parses 'input' into a ApiOperationId +func ParseApiOperationID(input string) (*ApiOperationId, error) { + parser := resourceids.NewParserFromResourceIdType(&ApiOperationId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := ApiOperationId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseApiOperationIDInsensitively parses 'input' case-insensitively into a ApiOperationId +// note: this method should only be used for API response data and not user input +func ParseApiOperationIDInsensitively(input string) (*ApiOperationId, error) { + parser := resourceids.NewParserFromResourceIdType(&ApiOperationId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := ApiOperationId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *ApiOperationId) 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.ServiceName, ok = input.Parsed["serviceName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "serviceName", input) + } + + if id.WorkspaceId, ok = input.Parsed["workspaceId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "workspaceId", input) + } + + if id.ApiId, ok = input.Parsed["apiId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "apiId", input) + } + + if id.OperationId, ok = input.Parsed["operationId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "operationId", input) + } + + return nil +} + +// ValidateApiOperationID checks that 'input' can be parsed as a Api Operation ID +func ValidateApiOperationID(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 := ParseApiOperationID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Api Operation ID +func (id ApiOperationId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.ApiManagement/service/%s/workspaces/%s/apis/%s/operations/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.ServiceName, id.WorkspaceId, id.ApiId, id.OperationId) +} + +// Segments returns a slice of Resource ID Segments which comprise this Api Operation ID +func (id ApiOperationId) 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("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), + resourceids.StaticSegment("staticService", "service", "service"), + resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), + resourceids.UserSpecifiedSegment("workspaceId", "workspaceIdValue"), + resourceids.StaticSegment("staticApis", "apis", "apis"), + resourceids.UserSpecifiedSegment("apiId", "apiIdValue"), + resourceids.StaticSegment("staticOperations", "operations", "operations"), + resourceids.UserSpecifiedSegment("operationId", "operationIdValue"), + } +} + +// String returns a human-readable description of this Api Operation ID +func (id ApiOperationId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Service Name: %q", id.ServiceName), + fmt.Sprintf("Workspace: %q", id.WorkspaceId), + fmt.Sprintf("Api: %q", id.ApiId), + fmt.Sprintf("Operation: %q", id.OperationId), + } + return fmt.Sprintf("Api Operation (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperation/id_operation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/id_operation.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperation/id_operation.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/id_operation.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/id_workspaceapi.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/id_workspaceapi.go new file mode 100644 index 000000000000..15a2ebfc5ee9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/id_workspaceapi.go @@ -0,0 +1,148 @@ +package apioperation + +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(&WorkspaceApiId{}) +} + +var _ resourceids.ResourceId = &WorkspaceApiId{} + +// WorkspaceApiId is a struct representing the Resource ID for a Workspace Api +type WorkspaceApiId struct { + SubscriptionId string + ResourceGroupName string + ServiceName string + WorkspaceId string + ApiId string +} + +// NewWorkspaceApiID returns a new WorkspaceApiId struct +func NewWorkspaceApiID(subscriptionId string, resourceGroupName string, serviceName string, workspaceId string, apiId string) WorkspaceApiId { + return WorkspaceApiId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + ServiceName: serviceName, + WorkspaceId: workspaceId, + ApiId: apiId, + } +} + +// ParseWorkspaceApiID parses 'input' into a WorkspaceApiId +func ParseWorkspaceApiID(input string) (*WorkspaceApiId, error) { + parser := resourceids.NewParserFromResourceIdType(&WorkspaceApiId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := WorkspaceApiId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseWorkspaceApiIDInsensitively parses 'input' case-insensitively into a WorkspaceApiId +// note: this method should only be used for API response data and not user input +func ParseWorkspaceApiIDInsensitively(input string) (*WorkspaceApiId, error) { + parser := resourceids.NewParserFromResourceIdType(&WorkspaceApiId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := WorkspaceApiId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *WorkspaceApiId) 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.ServiceName, ok = input.Parsed["serviceName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "serviceName", input) + } + + if id.WorkspaceId, ok = input.Parsed["workspaceId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "workspaceId", input) + } + + if id.ApiId, ok = input.Parsed["apiId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "apiId", input) + } + + return nil +} + +// ValidateWorkspaceApiID checks that 'input' can be parsed as a Workspace Api ID +func ValidateWorkspaceApiID(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 := ParseWorkspaceApiID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Workspace Api ID +func (id WorkspaceApiId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.ApiManagement/service/%s/workspaces/%s/apis/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.ServiceName, id.WorkspaceId, id.ApiId) +} + +// Segments returns a slice of Resource ID Segments which comprise this Workspace Api ID +func (id WorkspaceApiId) 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("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), + resourceids.StaticSegment("staticService", "service", "service"), + resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), + resourceids.UserSpecifiedSegment("workspaceId", "workspaceIdValue"), + resourceids.StaticSegment("staticApis", "apis", "apis"), + resourceids.UserSpecifiedSegment("apiId", "apiIdValue"), + } +} + +// String returns a human-readable description of this Workspace Api ID +func (id WorkspaceApiId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Service Name: %q", id.ServiceName), + fmt.Sprintf("Workspace: %q", id.WorkspaceId), + fmt.Sprintf("Api: %q", id.ApiId), + } + return fmt.Sprintf("Workspace Api (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperation/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperation/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperation/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperation/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperation/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperation/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperation/method_getentitytag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/method_getentitytag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperation/method_getentitytag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/method_getentitytag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperation/method_listbyapi.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/method_listbyapi.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperation/method_listbyapi.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/method_listbyapi.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperation/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/method_update.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperation/method_update.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/method_update.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/method_workspaceapioperationcreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/method_workspaceapioperationcreateorupdate.go new file mode 100644 index 000000000000..31e0a6ea5fef --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/method_workspaceapioperationcreateorupdate.go @@ -0,0 +1,88 @@ +package apioperation + +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 WorkspaceApiOperationCreateOrUpdateOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *OperationContract +} + +type WorkspaceApiOperationCreateOrUpdateOperationOptions struct { + IfMatch *string +} + +func DefaultWorkspaceApiOperationCreateOrUpdateOperationOptions() WorkspaceApiOperationCreateOrUpdateOperationOptions { + return WorkspaceApiOperationCreateOrUpdateOperationOptions{} +} + +func (o WorkspaceApiOperationCreateOrUpdateOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + if o.IfMatch != nil { + out.Append("If-Match", fmt.Sprintf("%v", *o.IfMatch)) + } + return &out +} + +func (o WorkspaceApiOperationCreateOrUpdateOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + return &out +} + +func (o WorkspaceApiOperationCreateOrUpdateOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + + return &out +} + +// WorkspaceApiOperationCreateOrUpdate ... +func (c ApiOperationClient) WorkspaceApiOperationCreateOrUpdate(ctx context.Context, id ApiOperationId, input OperationContract, options WorkspaceApiOperationCreateOrUpdateOperationOptions) (result WorkspaceApiOperationCreateOrUpdateOperationResponse, 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 OperationContract + 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/apimanagement/2023-05-01-preview/apioperation/method_workspaceapioperationdelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/method_workspaceapioperationdelete.go new file mode 100644 index 000000000000..803c543da5bd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/method_workspaceapioperationdelete.go @@ -0,0 +1,76 @@ +package apioperation + +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 WorkspaceApiOperationDeleteOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +type WorkspaceApiOperationDeleteOperationOptions struct { + IfMatch *string +} + +func DefaultWorkspaceApiOperationDeleteOperationOptions() WorkspaceApiOperationDeleteOperationOptions { + return WorkspaceApiOperationDeleteOperationOptions{} +} + +func (o WorkspaceApiOperationDeleteOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + if o.IfMatch != nil { + out.Append("If-Match", fmt.Sprintf("%v", *o.IfMatch)) + } + return &out +} + +func (o WorkspaceApiOperationDeleteOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + return &out +} + +func (o WorkspaceApiOperationDeleteOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + + return &out +} + +// WorkspaceApiOperationDelete ... +func (c ApiOperationClient) WorkspaceApiOperationDelete(ctx context.Context, id ApiOperationId, options WorkspaceApiOperationDeleteOperationOptions) (result WorkspaceApiOperationDeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + 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 + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/method_workspaceapioperationget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/method_workspaceapioperationget.go new file mode 100644 index 000000000000..2da88a66a2f1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/method_workspaceapioperationget.go @@ -0,0 +1,54 @@ +package apioperation + +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 WorkspaceApiOperationGetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *OperationContract +} + +// WorkspaceApiOperationGet ... +func (c ApiOperationClient) WorkspaceApiOperationGet(ctx context.Context, id ApiOperationId) (result WorkspaceApiOperationGetOperationResponse, 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 OperationContract + 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/apimanagement/2023-05-01-preview/apioperation/method_workspaceapioperationgetentitytag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/method_workspaceapioperationgetentitytag.go new file mode 100644 index 000000000000..c9cec8363f94 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/method_workspaceapioperationgetentitytag.go @@ -0,0 +1,46 @@ +package apioperation + +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 WorkspaceApiOperationGetEntityTagOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// WorkspaceApiOperationGetEntityTag ... +func (c ApiOperationClient) WorkspaceApiOperationGetEntityTag(ctx context.Context, id ApiOperationId) (result WorkspaceApiOperationGetEntityTagOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodHead, + 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/apimanagement/2023-05-01-preview/apioperation/method_workspaceapioperationlistbyapi.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/method_workspaceapioperationlistbyapi.go new file mode 100644 index 000000000000..dfa7091cdf82 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/method_workspaceapioperationlistbyapi.go @@ -0,0 +1,145 @@ +package apioperation + +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 WorkspaceApiOperationListByApiOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]OperationContract +} + +type WorkspaceApiOperationListByApiCompleteResult struct { + LatestHttpResponse *http.Response + Items []OperationContract +} + +type WorkspaceApiOperationListByApiOperationOptions struct { + Filter *string + Skip *int64 + Tags *string + Top *int64 +} + +func DefaultWorkspaceApiOperationListByApiOperationOptions() WorkspaceApiOperationListByApiOperationOptions { + return WorkspaceApiOperationListByApiOperationOptions{} +} + +func (o WorkspaceApiOperationListByApiOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o WorkspaceApiOperationListByApiOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + return &out +} + +func (o WorkspaceApiOperationListByApiOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Filter != nil { + out.Append("$filter", fmt.Sprintf("%v", *o.Filter)) + } + if o.Skip != nil { + out.Append("$skip", fmt.Sprintf("%v", *o.Skip)) + } + if o.Tags != nil { + out.Append("tags", fmt.Sprintf("%v", *o.Tags)) + } + if o.Top != nil { + out.Append("$top", fmt.Sprintf("%v", *o.Top)) + } + return &out +} + +type WorkspaceApiOperationListByApiCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkspaceApiOperationListByApiCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// WorkspaceApiOperationListByApi ... +func (c ApiOperationClient) WorkspaceApiOperationListByApi(ctx context.Context, id WorkspaceApiId, options WorkspaceApiOperationListByApiOperationOptions) (result WorkspaceApiOperationListByApiOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + OptionsObject: options, + Pager: &WorkspaceApiOperationListByApiCustomPager{}, + Path: fmt.Sprintf("%s/operations", 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 *[]OperationContract `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// WorkspaceApiOperationListByApiComplete retrieves all the results into a single object +func (c ApiOperationClient) WorkspaceApiOperationListByApiComplete(ctx context.Context, id WorkspaceApiId, options WorkspaceApiOperationListByApiOperationOptions) (WorkspaceApiOperationListByApiCompleteResult, error) { + return c.WorkspaceApiOperationListByApiCompleteMatchingPredicate(ctx, id, options, OperationContractOperationPredicate{}) +} + +// WorkspaceApiOperationListByApiCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c ApiOperationClient) WorkspaceApiOperationListByApiCompleteMatchingPredicate(ctx context.Context, id WorkspaceApiId, options WorkspaceApiOperationListByApiOperationOptions, predicate OperationContractOperationPredicate) (result WorkspaceApiOperationListByApiCompleteResult, err error) { + items := make([]OperationContract, 0) + + resp, err := c.WorkspaceApiOperationListByApi(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 = WorkspaceApiOperationListByApiCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/method_workspaceapioperationupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/method_workspaceapioperationupdate.go new file mode 100644 index 000000000000..b485b35b34ac --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/method_workspaceapioperationupdate.go @@ -0,0 +1,87 @@ +package apioperation + +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 WorkspaceApiOperationUpdateOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *OperationContract +} + +type WorkspaceApiOperationUpdateOperationOptions struct { + IfMatch *string +} + +func DefaultWorkspaceApiOperationUpdateOperationOptions() WorkspaceApiOperationUpdateOperationOptions { + return WorkspaceApiOperationUpdateOperationOptions{} +} + +func (o WorkspaceApiOperationUpdateOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + if o.IfMatch != nil { + out.Append("If-Match", fmt.Sprintf("%v", *o.IfMatch)) + } + return &out +} + +func (o WorkspaceApiOperationUpdateOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + return &out +} + +func (o WorkspaceApiOperationUpdateOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + + return &out +} + +// WorkspaceApiOperationUpdate ... +func (c ApiOperationClient) WorkspaceApiOperationUpdate(ctx context.Context, id ApiOperationId, input OperationUpdateContract, options WorkspaceApiOperationUpdateOperationOptions) (result WorkspaceApiOperationUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPatch, + 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 OperationContract + 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/apimanagement/2022-08-01/apioperation/model_operationcontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/model_operationcontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperation/model_operationcontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/model_operationcontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperation/model_operationcontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/model_operationcontractproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperation/model_operationcontractproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/model_operationcontractproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperation/model_operationupdatecontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/model_operationupdatecontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperation/model_operationupdatecontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/model_operationupdatecontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperation/model_operationupdatecontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/model_operationupdatecontractproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperation/model_operationupdatecontractproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/model_operationupdatecontractproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperation/model_parametercontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/model_parametercontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperation/model_parametercontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/model_parametercontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperation/model_parameterexamplecontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/model_parameterexamplecontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperation/model_parameterexamplecontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/model_parameterexamplecontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperation/model_representationcontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/model_representationcontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperation/model_representationcontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/model_representationcontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperation/model_requestcontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/model_requestcontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperation/model_requestcontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/model_requestcontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperation/model_responsecontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/model_responsecontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperation/model_responsecontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/model_responsecontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperation/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperation/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperation/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/version.go similarity index 86% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperation/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/version.go index 86c8468c3234..f2986dd32906 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperation/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/version.go @@ -5,7 +5,7 @@ import "fmt" // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2022-08-01" +const defaultApiVersion = "2023-05-01-preview" func userAgent() string { return fmt.Sprintf("hashicorp/go-azure-sdk/apioperation/%s", defaultApiVersion) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/README.md new file mode 100644 index 000000000000..0b70c145c3e3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/README.md @@ -0,0 +1,192 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy` Documentation + +The `apioperationpolicy` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2023-05-01-preview`). + +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/apimanagement/2023-05-01-preview/apioperationpolicy" +``` + + +### Client Initialization + +```go +client := apioperationpolicy.NewApiOperationPolicyClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `ApiOperationPolicyClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := apioperationpolicy.NewOperationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue", "operationIdValue") + +payload := apioperationpolicy.PolicyContract{ + // ... +} + + +read, err := client.CreateOrUpdate(ctx, id, payload, apioperationpolicy.DefaultCreateOrUpdateOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ApiOperationPolicyClient.Delete` + +```go +ctx := context.TODO() +id := apioperationpolicy.NewOperationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue", "operationIdValue") + +read, err := client.Delete(ctx, id, apioperationpolicy.DefaultDeleteOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ApiOperationPolicyClient.Get` + +```go +ctx := context.TODO() +id := apioperationpolicy.NewOperationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue", "operationIdValue") + +read, err := client.Get(ctx, id, apioperationpolicy.DefaultGetOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ApiOperationPolicyClient.GetEntityTag` + +```go +ctx := context.TODO() +id := apioperationpolicy.NewOperationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue", "operationIdValue") + +read, err := client.GetEntityTag(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ApiOperationPolicyClient.ListByOperation` + +```go +ctx := context.TODO() +id := apioperationpolicy.NewOperationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue", "operationIdValue") + +// alternatively `client.ListByOperation(ctx, id)` can be used to do batched pagination +items, err := client.ListByOperationComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `ApiOperationPolicyClient.WorkspaceApiOperationPolicyCreateOrUpdate` + +```go +ctx := context.TODO() +id := apioperationpolicy.NewApiOperationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "apiIdValue", "operationIdValue") + +payload := apioperationpolicy.PolicyContract{ + // ... +} + + +read, err := client.WorkspaceApiOperationPolicyCreateOrUpdate(ctx, id, payload, apioperationpolicy.DefaultWorkspaceApiOperationPolicyCreateOrUpdateOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ApiOperationPolicyClient.WorkspaceApiOperationPolicyDelete` + +```go +ctx := context.TODO() +id := apioperationpolicy.NewApiOperationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "apiIdValue", "operationIdValue") + +read, err := client.WorkspaceApiOperationPolicyDelete(ctx, id, apioperationpolicy.DefaultWorkspaceApiOperationPolicyDeleteOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ApiOperationPolicyClient.WorkspaceApiOperationPolicyGet` + +```go +ctx := context.TODO() +id := apioperationpolicy.NewApiOperationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "apiIdValue", "operationIdValue") + +read, err := client.WorkspaceApiOperationPolicyGet(ctx, id, apioperationpolicy.DefaultWorkspaceApiOperationPolicyGetOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ApiOperationPolicyClient.WorkspaceApiOperationPolicyGetEntityTag` + +```go +ctx := context.TODO() +id := apioperationpolicy.NewApiOperationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "apiIdValue", "operationIdValue") + +read, err := client.WorkspaceApiOperationPolicyGetEntityTag(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ApiOperationPolicyClient.WorkspaceApiOperationPolicyListByOperation` + +```go +ctx := context.TODO() +id := apioperationpolicy.NewApiOperationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "apiIdValue", "operationIdValue") + +// alternatively `client.WorkspaceApiOperationPolicyListByOperation(ctx, id)` can be used to do batched pagination +items, err := client.WorkspaceApiOperationPolicyListByOperationComplete(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/apimanagement/2022-08-01/apioperationpolicy/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationpolicy/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationpolicy/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationpolicy/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/id_apioperation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/id_apioperation.go new file mode 100644 index 000000000000..15b5b760791e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/id_apioperation.go @@ -0,0 +1,157 @@ +package apioperationpolicy + +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(&ApiOperationId{}) +} + +var _ resourceids.ResourceId = &ApiOperationId{} + +// ApiOperationId is a struct representing the Resource ID for a Api Operation +type ApiOperationId struct { + SubscriptionId string + ResourceGroupName string + ServiceName string + WorkspaceId string + ApiId string + OperationId string +} + +// NewApiOperationID returns a new ApiOperationId struct +func NewApiOperationID(subscriptionId string, resourceGroupName string, serviceName string, workspaceId string, apiId string, operationId string) ApiOperationId { + return ApiOperationId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + ServiceName: serviceName, + WorkspaceId: workspaceId, + ApiId: apiId, + OperationId: operationId, + } +} + +// ParseApiOperationID parses 'input' into a ApiOperationId +func ParseApiOperationID(input string) (*ApiOperationId, error) { + parser := resourceids.NewParserFromResourceIdType(&ApiOperationId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := ApiOperationId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseApiOperationIDInsensitively parses 'input' case-insensitively into a ApiOperationId +// note: this method should only be used for API response data and not user input +func ParseApiOperationIDInsensitively(input string) (*ApiOperationId, error) { + parser := resourceids.NewParserFromResourceIdType(&ApiOperationId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := ApiOperationId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *ApiOperationId) 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.ServiceName, ok = input.Parsed["serviceName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "serviceName", input) + } + + if id.WorkspaceId, ok = input.Parsed["workspaceId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "workspaceId", input) + } + + if id.ApiId, ok = input.Parsed["apiId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "apiId", input) + } + + if id.OperationId, ok = input.Parsed["operationId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "operationId", input) + } + + return nil +} + +// ValidateApiOperationID checks that 'input' can be parsed as a Api Operation ID +func ValidateApiOperationID(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 := ParseApiOperationID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Api Operation ID +func (id ApiOperationId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.ApiManagement/service/%s/workspaces/%s/apis/%s/operations/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.ServiceName, id.WorkspaceId, id.ApiId, id.OperationId) +} + +// Segments returns a slice of Resource ID Segments which comprise this Api Operation ID +func (id ApiOperationId) 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("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), + resourceids.StaticSegment("staticService", "service", "service"), + resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), + resourceids.UserSpecifiedSegment("workspaceId", "workspaceIdValue"), + resourceids.StaticSegment("staticApis", "apis", "apis"), + resourceids.UserSpecifiedSegment("apiId", "apiIdValue"), + resourceids.StaticSegment("staticOperations", "operations", "operations"), + resourceids.UserSpecifiedSegment("operationId", "operationIdValue"), + } +} + +// String returns a human-readable description of this Api Operation ID +func (id ApiOperationId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Service Name: %q", id.ServiceName), + fmt.Sprintf("Workspace: %q", id.WorkspaceId), + fmt.Sprintf("Api: %q", id.ApiId), + fmt.Sprintf("Operation: %q", id.OperationId), + } + return fmt.Sprintf("Api Operation (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationpolicy/id_operation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/id_operation.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationpolicy/id_operation.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/id_operation.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationpolicy/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationpolicy/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationpolicy/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationpolicy/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationpolicy/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationpolicy/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationpolicy/method_getentitytag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/method_getentitytag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationpolicy/method_getentitytag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/method_getentitytag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationpolicy/method_listbyoperation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/method_listbyoperation.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationpolicy/method_listbyoperation.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/method_listbyoperation.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/method_workspaceapioperationpolicycreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/method_workspaceapioperationpolicycreateorupdate.go new file mode 100644 index 000000000000..749273ac5874 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/method_workspaceapioperationpolicycreateorupdate.go @@ -0,0 +1,88 @@ +package apioperationpolicy + +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 WorkspaceApiOperationPolicyCreateOrUpdateOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *PolicyContract +} + +type WorkspaceApiOperationPolicyCreateOrUpdateOperationOptions struct { + IfMatch *string +} + +func DefaultWorkspaceApiOperationPolicyCreateOrUpdateOperationOptions() WorkspaceApiOperationPolicyCreateOrUpdateOperationOptions { + return WorkspaceApiOperationPolicyCreateOrUpdateOperationOptions{} +} + +func (o WorkspaceApiOperationPolicyCreateOrUpdateOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + if o.IfMatch != nil { + out.Append("If-Match", fmt.Sprintf("%v", *o.IfMatch)) + } + return &out +} + +func (o WorkspaceApiOperationPolicyCreateOrUpdateOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + return &out +} + +func (o WorkspaceApiOperationPolicyCreateOrUpdateOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + + return &out +} + +// WorkspaceApiOperationPolicyCreateOrUpdate ... +func (c ApiOperationPolicyClient) WorkspaceApiOperationPolicyCreateOrUpdate(ctx context.Context, id ApiOperationId, input PolicyContract, options WorkspaceApiOperationPolicyCreateOrUpdateOperationOptions) (result WorkspaceApiOperationPolicyCreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + OptionsObject: options, + Path: fmt.Sprintf("%s/policies/policy", 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 PolicyContract + 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/apimanagement/2023-05-01-preview/apioperationpolicy/method_workspaceapioperationpolicydelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/method_workspaceapioperationpolicydelete.go new file mode 100644 index 000000000000..47c3dded764a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/method_workspaceapioperationpolicydelete.go @@ -0,0 +1,76 @@ +package apioperationpolicy + +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 WorkspaceApiOperationPolicyDeleteOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +type WorkspaceApiOperationPolicyDeleteOperationOptions struct { + IfMatch *string +} + +func DefaultWorkspaceApiOperationPolicyDeleteOperationOptions() WorkspaceApiOperationPolicyDeleteOperationOptions { + return WorkspaceApiOperationPolicyDeleteOperationOptions{} +} + +func (o WorkspaceApiOperationPolicyDeleteOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + if o.IfMatch != nil { + out.Append("If-Match", fmt.Sprintf("%v", *o.IfMatch)) + } + return &out +} + +func (o WorkspaceApiOperationPolicyDeleteOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + return &out +} + +func (o WorkspaceApiOperationPolicyDeleteOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + + return &out +} + +// WorkspaceApiOperationPolicyDelete ... +func (c ApiOperationPolicyClient) WorkspaceApiOperationPolicyDelete(ctx context.Context, id ApiOperationId, options WorkspaceApiOperationPolicyDeleteOperationOptions) (result WorkspaceApiOperationPolicyDeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + OptionsObject: options, + Path: fmt.Sprintf("%s/policies/policy", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + 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/apimanagement/2023-05-01-preview/apioperationpolicy/method_workspaceapioperationpolicyget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/method_workspaceapioperationpolicyget.go new file mode 100644 index 000000000000..9395af3465aa --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/method_workspaceapioperationpolicyget.go @@ -0,0 +1,83 @@ +package apioperationpolicy + +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 WorkspaceApiOperationPolicyGetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *PolicyContract +} + +type WorkspaceApiOperationPolicyGetOperationOptions struct { + Format *PolicyExportFormat +} + +func DefaultWorkspaceApiOperationPolicyGetOperationOptions() WorkspaceApiOperationPolicyGetOperationOptions { + return WorkspaceApiOperationPolicyGetOperationOptions{} +} + +func (o WorkspaceApiOperationPolicyGetOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o WorkspaceApiOperationPolicyGetOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + return &out +} + +func (o WorkspaceApiOperationPolicyGetOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Format != nil { + out.Append("format", fmt.Sprintf("%v", *o.Format)) + } + return &out +} + +// WorkspaceApiOperationPolicyGet ... +func (c ApiOperationPolicyClient) WorkspaceApiOperationPolicyGet(ctx context.Context, id ApiOperationId, options WorkspaceApiOperationPolicyGetOperationOptions) (result WorkspaceApiOperationPolicyGetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + OptionsObject: options, + Path: fmt.Sprintf("%s/policies/policy", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + 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 PolicyContract + 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/apimanagement/2023-05-01-preview/apioperationpolicy/method_workspaceapioperationpolicygetentitytag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/method_workspaceapioperationpolicygetentitytag.go new file mode 100644 index 000000000000..84f2cfa29a73 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/method_workspaceapioperationpolicygetentitytag.go @@ -0,0 +1,47 @@ +package apioperationpolicy + +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 WorkspaceApiOperationPolicyGetEntityTagOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// WorkspaceApiOperationPolicyGetEntityTag ... +func (c ApiOperationPolicyClient) WorkspaceApiOperationPolicyGetEntityTag(ctx context.Context, id ApiOperationId) (result WorkspaceApiOperationPolicyGetEntityTagOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodHead, + Path: fmt.Sprintf("%s/policies/policy", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + 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/apimanagement/2023-05-01-preview/apioperationpolicy/method_workspaceapioperationpolicylistbyoperation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/method_workspaceapioperationpolicylistbyoperation.go new file mode 100644 index 000000000000..f09ff195389b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/method_workspaceapioperationpolicylistbyoperation.go @@ -0,0 +1,105 @@ +package apioperationpolicy + +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 WorkspaceApiOperationPolicyListByOperationOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]PolicyContract +} + +type WorkspaceApiOperationPolicyListByOperationCompleteResult struct { + LatestHttpResponse *http.Response + Items []PolicyContract +} + +type WorkspaceApiOperationPolicyListByOperationCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkspaceApiOperationPolicyListByOperationCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// WorkspaceApiOperationPolicyListByOperation ... +func (c ApiOperationPolicyClient) WorkspaceApiOperationPolicyListByOperation(ctx context.Context, id ApiOperationId) (result WorkspaceApiOperationPolicyListByOperationOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &WorkspaceApiOperationPolicyListByOperationCustomPager{}, + Path: fmt.Sprintf("%s/policies", 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 *[]PolicyContract `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// WorkspaceApiOperationPolicyListByOperationComplete retrieves all the results into a single object +func (c ApiOperationPolicyClient) WorkspaceApiOperationPolicyListByOperationComplete(ctx context.Context, id ApiOperationId) (WorkspaceApiOperationPolicyListByOperationCompleteResult, error) { + return c.WorkspaceApiOperationPolicyListByOperationCompleteMatchingPredicate(ctx, id, PolicyContractOperationPredicate{}) +} + +// WorkspaceApiOperationPolicyListByOperationCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c ApiOperationPolicyClient) WorkspaceApiOperationPolicyListByOperationCompleteMatchingPredicate(ctx context.Context, id ApiOperationId, predicate PolicyContractOperationPredicate) (result WorkspaceApiOperationPolicyListByOperationCompleteResult, err error) { + items := make([]PolicyContract, 0) + + resp, err := c.WorkspaceApiOperationPolicyListByOperation(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 = WorkspaceApiOperationPolicyListByOperationCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationpolicy/model_policycontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/model_policycontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationpolicy/model_policycontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/model_policycontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationpolicy/model_policycontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/model_policycontractproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationpolicy/model_policycontractproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/model_policycontractproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationpolicy/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationpolicy/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationpolicy/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/version.go similarity index 87% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationpolicy/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/version.go index 5c02ab0989d7..d66568b0d707 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationpolicy/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/version.go @@ -5,7 +5,7 @@ import "fmt" // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2022-08-01" +const defaultApiVersion = "2023-05-01-preview" func userAgent() string { return fmt.Sprintf("hashicorp/go-azure-sdk/apioperationpolicy/%s", defaultApiVersion) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationtag/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationtag/README.md similarity index 94% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationtag/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationtag/README.md index 6397d8556a69..b12cdb13c653 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationtag/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationtag/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationtag` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationtag` Documentation -The `apioperationtag` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2022-08-01`). +The `apioperationtag` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2023-05-01-preview`). 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/apimanagement/2022-08-01/apioperationtag" +import "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationtag" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationtag/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationtag/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationtag/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationtag/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationtag/id_operation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationtag/id_operation.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationtag/id_operation.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationtag/id_operation.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationtag/id_operationtag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationtag/id_operationtag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationtag/id_operationtag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationtag/id_operationtag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationtag/method_tagassigntooperation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationtag/method_tagassigntooperation.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationtag/method_tagassigntooperation.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationtag/method_tagassigntooperation.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationtag/method_tagdetachfromoperation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationtag/method_tagdetachfromoperation.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationtag/method_tagdetachfromoperation.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationtag/method_tagdetachfromoperation.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationtag/method_taggetbyoperation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationtag/method_taggetbyoperation.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationtag/method_taggetbyoperation.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationtag/method_taggetbyoperation.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationtag/method_taggetentitystatebyoperation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationtag/method_taggetentitystatebyoperation.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationtag/method_taggetentitystatebyoperation.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationtag/method_taggetentitystatebyoperation.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationtag/method_taglistbyoperation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationtag/method_taglistbyoperation.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationtag/method_taglistbyoperation.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationtag/method_taglistbyoperation.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationtag/model_tagcontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationtag/model_tagcontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationtag/model_tagcontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationtag/model_tagcontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationtag/model_tagcontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationtag/model_tagcontractproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationtag/model_tagcontractproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationtag/model_tagcontractproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationtag/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationtag/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationtag/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationtag/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationtag/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationtag/version.go similarity index 86% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationtag/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationtag/version.go index 852f6568d19b..25c3f29e1c17 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationtag/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationtag/version.go @@ -5,7 +5,7 @@ import "fmt" // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2022-08-01" +const defaultApiVersion = "2023-05-01-preview" func userAgent() string { return fmt.Sprintf("hashicorp/go-azure-sdk/apioperationtag/%s", defaultApiVersion) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apipolicy/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apipolicy/README.md new file mode 100644 index 000000000000..b4146c9d28ca --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apipolicy/README.md @@ -0,0 +1,192 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apipolicy` Documentation + +The `apipolicy` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2023-05-01-preview`). + +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/apimanagement/2023-05-01-preview/apipolicy" +``` + + +### Client Initialization + +```go +client := apipolicy.NewApiPolicyClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `ApiPolicyClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := apipolicy.NewApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue") + +payload := apipolicy.PolicyContract{ + // ... +} + + +read, err := client.CreateOrUpdate(ctx, id, payload, apipolicy.DefaultCreateOrUpdateOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ApiPolicyClient.Delete` + +```go +ctx := context.TODO() +id := apipolicy.NewApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue") + +read, err := client.Delete(ctx, id, apipolicy.DefaultDeleteOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ApiPolicyClient.Get` + +```go +ctx := context.TODO() +id := apipolicy.NewApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue") + +read, err := client.Get(ctx, id, apipolicy.DefaultGetOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ApiPolicyClient.GetEntityTag` + +```go +ctx := context.TODO() +id := apipolicy.NewApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue") + +read, err := client.GetEntityTag(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ApiPolicyClient.ListByApi` + +```go +ctx := context.TODO() +id := apipolicy.NewApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue") + +// alternatively `client.ListByApi(ctx, id)` can be used to do batched pagination +items, err := client.ListByApiComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `ApiPolicyClient.WorkspaceApiPolicyCreateOrUpdate` + +```go +ctx := context.TODO() +id := apipolicy.NewWorkspaceApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "apiIdValue") + +payload := apipolicy.PolicyContract{ + // ... +} + + +read, err := client.WorkspaceApiPolicyCreateOrUpdate(ctx, id, payload, apipolicy.DefaultWorkspaceApiPolicyCreateOrUpdateOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ApiPolicyClient.WorkspaceApiPolicyDelete` + +```go +ctx := context.TODO() +id := apipolicy.NewWorkspaceApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "apiIdValue") + +read, err := client.WorkspaceApiPolicyDelete(ctx, id, apipolicy.DefaultWorkspaceApiPolicyDeleteOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ApiPolicyClient.WorkspaceApiPolicyGet` + +```go +ctx := context.TODO() +id := apipolicy.NewWorkspaceApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "apiIdValue") + +read, err := client.WorkspaceApiPolicyGet(ctx, id, apipolicy.DefaultWorkspaceApiPolicyGetOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ApiPolicyClient.WorkspaceApiPolicyGetEntityTag` + +```go +ctx := context.TODO() +id := apipolicy.NewWorkspaceApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "apiIdValue") + +read, err := client.WorkspaceApiPolicyGetEntityTag(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ApiPolicyClient.WorkspaceApiPolicyListByApi` + +```go +ctx := context.TODO() +id := apipolicy.NewWorkspaceApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "apiIdValue") + +// alternatively `client.WorkspaceApiPolicyListByApi(ctx, id)` can be used to do batched pagination +items, err := client.WorkspaceApiPolicyListByApiComplete(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/apimanagement/2022-08-01/apipolicy/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apipolicy/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apipolicy/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apipolicy/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apipolicy/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apipolicy/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apipolicy/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apipolicy/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apipolicy/id_api.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apipolicy/id_api.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apipolicy/id_api.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apipolicy/id_api.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apipolicy/id_workspaceapi.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apipolicy/id_workspaceapi.go new file mode 100644 index 000000000000..a7710bb2ef55 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apipolicy/id_workspaceapi.go @@ -0,0 +1,148 @@ +package apipolicy + +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(&WorkspaceApiId{}) +} + +var _ resourceids.ResourceId = &WorkspaceApiId{} + +// WorkspaceApiId is a struct representing the Resource ID for a Workspace Api +type WorkspaceApiId struct { + SubscriptionId string + ResourceGroupName string + ServiceName string + WorkspaceId string + ApiId string +} + +// NewWorkspaceApiID returns a new WorkspaceApiId struct +func NewWorkspaceApiID(subscriptionId string, resourceGroupName string, serviceName string, workspaceId string, apiId string) WorkspaceApiId { + return WorkspaceApiId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + ServiceName: serviceName, + WorkspaceId: workspaceId, + ApiId: apiId, + } +} + +// ParseWorkspaceApiID parses 'input' into a WorkspaceApiId +func ParseWorkspaceApiID(input string) (*WorkspaceApiId, error) { + parser := resourceids.NewParserFromResourceIdType(&WorkspaceApiId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := WorkspaceApiId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseWorkspaceApiIDInsensitively parses 'input' case-insensitively into a WorkspaceApiId +// note: this method should only be used for API response data and not user input +func ParseWorkspaceApiIDInsensitively(input string) (*WorkspaceApiId, error) { + parser := resourceids.NewParserFromResourceIdType(&WorkspaceApiId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := WorkspaceApiId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *WorkspaceApiId) 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.ServiceName, ok = input.Parsed["serviceName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "serviceName", input) + } + + if id.WorkspaceId, ok = input.Parsed["workspaceId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "workspaceId", input) + } + + if id.ApiId, ok = input.Parsed["apiId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "apiId", input) + } + + return nil +} + +// ValidateWorkspaceApiID checks that 'input' can be parsed as a Workspace Api ID +func ValidateWorkspaceApiID(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 := ParseWorkspaceApiID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Workspace Api ID +func (id WorkspaceApiId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.ApiManagement/service/%s/workspaces/%s/apis/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.ServiceName, id.WorkspaceId, id.ApiId) +} + +// Segments returns a slice of Resource ID Segments which comprise this Workspace Api ID +func (id WorkspaceApiId) 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("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), + resourceids.StaticSegment("staticService", "service", "service"), + resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), + resourceids.UserSpecifiedSegment("workspaceId", "workspaceIdValue"), + resourceids.StaticSegment("staticApis", "apis", "apis"), + resourceids.UserSpecifiedSegment("apiId", "apiIdValue"), + } +} + +// String returns a human-readable description of this Workspace Api ID +func (id WorkspaceApiId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Service Name: %q", id.ServiceName), + fmt.Sprintf("Workspace: %q", id.WorkspaceId), + fmt.Sprintf("Api: %q", id.ApiId), + } + return fmt.Sprintf("Workspace Api (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apipolicy/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apipolicy/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apipolicy/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apipolicy/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apipolicy/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apipolicy/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apipolicy/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apipolicy/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apipolicy/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apipolicy/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apipolicy/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apipolicy/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apipolicy/method_getentitytag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apipolicy/method_getentitytag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apipolicy/method_getentitytag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apipolicy/method_getentitytag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apipolicy/method_listbyapi.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apipolicy/method_listbyapi.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apipolicy/method_listbyapi.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apipolicy/method_listbyapi.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apipolicy/method_workspaceapipolicycreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apipolicy/method_workspaceapipolicycreateorupdate.go new file mode 100644 index 000000000000..003cadb79cec --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apipolicy/method_workspaceapipolicycreateorupdate.go @@ -0,0 +1,88 @@ +package apipolicy + +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 WorkspaceApiPolicyCreateOrUpdateOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *PolicyContract +} + +type WorkspaceApiPolicyCreateOrUpdateOperationOptions struct { + IfMatch *string +} + +func DefaultWorkspaceApiPolicyCreateOrUpdateOperationOptions() WorkspaceApiPolicyCreateOrUpdateOperationOptions { + return WorkspaceApiPolicyCreateOrUpdateOperationOptions{} +} + +func (o WorkspaceApiPolicyCreateOrUpdateOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + if o.IfMatch != nil { + out.Append("If-Match", fmt.Sprintf("%v", *o.IfMatch)) + } + return &out +} + +func (o WorkspaceApiPolicyCreateOrUpdateOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + return &out +} + +func (o WorkspaceApiPolicyCreateOrUpdateOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + + return &out +} + +// WorkspaceApiPolicyCreateOrUpdate ... +func (c ApiPolicyClient) WorkspaceApiPolicyCreateOrUpdate(ctx context.Context, id WorkspaceApiId, input PolicyContract, options WorkspaceApiPolicyCreateOrUpdateOperationOptions) (result WorkspaceApiPolicyCreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + OptionsObject: options, + Path: fmt.Sprintf("%s/policies/policy", 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 PolicyContract + 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/apimanagement/2023-05-01-preview/apipolicy/method_workspaceapipolicydelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apipolicy/method_workspaceapipolicydelete.go new file mode 100644 index 000000000000..f2ceb3f9e4de --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apipolicy/method_workspaceapipolicydelete.go @@ -0,0 +1,76 @@ +package apipolicy + +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 WorkspaceApiPolicyDeleteOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +type WorkspaceApiPolicyDeleteOperationOptions struct { + IfMatch *string +} + +func DefaultWorkspaceApiPolicyDeleteOperationOptions() WorkspaceApiPolicyDeleteOperationOptions { + return WorkspaceApiPolicyDeleteOperationOptions{} +} + +func (o WorkspaceApiPolicyDeleteOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + if o.IfMatch != nil { + out.Append("If-Match", fmt.Sprintf("%v", *o.IfMatch)) + } + return &out +} + +func (o WorkspaceApiPolicyDeleteOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + return &out +} + +func (o WorkspaceApiPolicyDeleteOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + + return &out +} + +// WorkspaceApiPolicyDelete ... +func (c ApiPolicyClient) WorkspaceApiPolicyDelete(ctx context.Context, id WorkspaceApiId, options WorkspaceApiPolicyDeleteOperationOptions) (result WorkspaceApiPolicyDeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + OptionsObject: options, + Path: fmt.Sprintf("%s/policies/policy", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + 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/apimanagement/2023-05-01-preview/apipolicy/method_workspaceapipolicyget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apipolicy/method_workspaceapipolicyget.go new file mode 100644 index 000000000000..364bd7248f27 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apipolicy/method_workspaceapipolicyget.go @@ -0,0 +1,83 @@ +package apipolicy + +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 WorkspaceApiPolicyGetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *PolicyContract +} + +type WorkspaceApiPolicyGetOperationOptions struct { + Format *PolicyExportFormat +} + +func DefaultWorkspaceApiPolicyGetOperationOptions() WorkspaceApiPolicyGetOperationOptions { + return WorkspaceApiPolicyGetOperationOptions{} +} + +func (o WorkspaceApiPolicyGetOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o WorkspaceApiPolicyGetOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + return &out +} + +func (o WorkspaceApiPolicyGetOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Format != nil { + out.Append("format", fmt.Sprintf("%v", *o.Format)) + } + return &out +} + +// WorkspaceApiPolicyGet ... +func (c ApiPolicyClient) WorkspaceApiPolicyGet(ctx context.Context, id WorkspaceApiId, options WorkspaceApiPolicyGetOperationOptions) (result WorkspaceApiPolicyGetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + OptionsObject: options, + Path: fmt.Sprintf("%s/policies/policy", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + 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 PolicyContract + 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/apimanagement/2023-05-01-preview/apipolicy/method_workspaceapipolicygetentitytag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apipolicy/method_workspaceapipolicygetentitytag.go new file mode 100644 index 000000000000..47d8ff10508f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apipolicy/method_workspaceapipolicygetentitytag.go @@ -0,0 +1,47 @@ +package apipolicy + +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 WorkspaceApiPolicyGetEntityTagOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// WorkspaceApiPolicyGetEntityTag ... +func (c ApiPolicyClient) WorkspaceApiPolicyGetEntityTag(ctx context.Context, id WorkspaceApiId) (result WorkspaceApiPolicyGetEntityTagOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodHead, + Path: fmt.Sprintf("%s/policies/policy", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + 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/apimanagement/2023-05-01-preview/apipolicy/method_workspaceapipolicylistbyapi.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apipolicy/method_workspaceapipolicylistbyapi.go new file mode 100644 index 000000000000..39a1a6de1a14 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apipolicy/method_workspaceapipolicylistbyapi.go @@ -0,0 +1,105 @@ +package apipolicy + +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 WorkspaceApiPolicyListByApiOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]PolicyContract +} + +type WorkspaceApiPolicyListByApiCompleteResult struct { + LatestHttpResponse *http.Response + Items []PolicyContract +} + +type WorkspaceApiPolicyListByApiCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkspaceApiPolicyListByApiCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// WorkspaceApiPolicyListByApi ... +func (c ApiPolicyClient) WorkspaceApiPolicyListByApi(ctx context.Context, id WorkspaceApiId) (result WorkspaceApiPolicyListByApiOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &WorkspaceApiPolicyListByApiCustomPager{}, + Path: fmt.Sprintf("%s/policies", 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 *[]PolicyContract `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// WorkspaceApiPolicyListByApiComplete retrieves all the results into a single object +func (c ApiPolicyClient) WorkspaceApiPolicyListByApiComplete(ctx context.Context, id WorkspaceApiId) (WorkspaceApiPolicyListByApiCompleteResult, error) { + return c.WorkspaceApiPolicyListByApiCompleteMatchingPredicate(ctx, id, PolicyContractOperationPredicate{}) +} + +// WorkspaceApiPolicyListByApiCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c ApiPolicyClient) WorkspaceApiPolicyListByApiCompleteMatchingPredicate(ctx context.Context, id WorkspaceApiId, predicate PolicyContractOperationPredicate) (result WorkspaceApiPolicyListByApiCompleteResult, err error) { + items := make([]PolicyContract, 0) + + resp, err := c.WorkspaceApiPolicyListByApi(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 = WorkspaceApiPolicyListByApiCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apipolicy/model_policycontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apipolicy/model_policycontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apipolicy/model_policycontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apipolicy/model_policycontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apipolicy/model_policycontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apipolicy/model_policycontractproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apipolicy/model_policycontractproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apipolicy/model_policycontractproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apipolicy/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apipolicy/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apipolicy/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apipolicy/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apipolicy/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apipolicy/version.go similarity index 86% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apipolicy/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apipolicy/version.go index 41da5ae33633..70f5bf96106c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apipolicy/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apipolicy/version.go @@ -5,7 +5,7 @@ import "fmt" // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2022-08-01" +const defaultApiVersion = "2023-05-01-preview" func userAgent() string { return fmt.Sprintf("hashicorp/go-azure-sdk/apipolicy/%s", defaultApiVersion) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/README.md new file mode 100644 index 000000000000..4688d1772d8f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/README.md @@ -0,0 +1,234 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease` Documentation + +The `apirelease` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2023-05-01-preview`). + +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/apimanagement/2023-05-01-preview/apirelease" +``` + + +### Client Initialization + +```go +client := apirelease.NewApiReleaseClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `ApiReleaseClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := apirelease.NewReleaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue", "releaseIdValue") + +payload := apirelease.ApiReleaseContract{ + // ... +} + + +read, err := client.CreateOrUpdate(ctx, id, payload, apirelease.DefaultCreateOrUpdateOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ApiReleaseClient.Delete` + +```go +ctx := context.TODO() +id := apirelease.NewReleaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue", "releaseIdValue") + +read, err := client.Delete(ctx, id, apirelease.DefaultDeleteOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ApiReleaseClient.Get` + +```go +ctx := context.TODO() +id := apirelease.NewReleaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue", "releaseIdValue") + +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: `ApiReleaseClient.GetEntityTag` + +```go +ctx := context.TODO() +id := apirelease.NewReleaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue", "releaseIdValue") + +read, err := client.GetEntityTag(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ApiReleaseClient.ListByService` + +```go +ctx := context.TODO() +id := apirelease.NewApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue") + +// alternatively `client.ListByService(ctx, id, apirelease.DefaultListByServiceOperationOptions())` can be used to do batched pagination +items, err := client.ListByServiceComplete(ctx, id, apirelease.DefaultListByServiceOperationOptions()) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `ApiReleaseClient.Update` + +```go +ctx := context.TODO() +id := apirelease.NewReleaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue", "releaseIdValue") + +payload := apirelease.ApiReleaseContract{ + // ... +} + + +read, err := client.Update(ctx, id, payload, apirelease.DefaultUpdateOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ApiReleaseClient.WorkspaceApiReleaseCreateOrUpdate` + +```go +ctx := context.TODO() +id := apirelease.NewApiReleaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "apiIdValue", "releaseIdValue") + +payload := apirelease.ApiReleaseContract{ + // ... +} + + +read, err := client.WorkspaceApiReleaseCreateOrUpdate(ctx, id, payload, apirelease.DefaultWorkspaceApiReleaseCreateOrUpdateOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ApiReleaseClient.WorkspaceApiReleaseDelete` + +```go +ctx := context.TODO() +id := apirelease.NewApiReleaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "apiIdValue", "releaseIdValue") + +read, err := client.WorkspaceApiReleaseDelete(ctx, id, apirelease.DefaultWorkspaceApiReleaseDeleteOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ApiReleaseClient.WorkspaceApiReleaseGet` + +```go +ctx := context.TODO() +id := apirelease.NewApiReleaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "apiIdValue", "releaseIdValue") + +read, err := client.WorkspaceApiReleaseGet(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ApiReleaseClient.WorkspaceApiReleaseGetEntityTag` + +```go +ctx := context.TODO() +id := apirelease.NewApiReleaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "apiIdValue", "releaseIdValue") + +read, err := client.WorkspaceApiReleaseGetEntityTag(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ApiReleaseClient.WorkspaceApiReleaseListByService` + +```go +ctx := context.TODO() +id := apirelease.NewWorkspaceApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "apiIdValue") + +// alternatively `client.WorkspaceApiReleaseListByService(ctx, id, apirelease.DefaultWorkspaceApiReleaseListByServiceOperationOptions())` can be used to do batched pagination +items, err := client.WorkspaceApiReleaseListByServiceComplete(ctx, id, apirelease.DefaultWorkspaceApiReleaseListByServiceOperationOptions()) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `ApiReleaseClient.WorkspaceApiReleaseUpdate` + +```go +ctx := context.TODO() +id := apirelease.NewApiReleaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "apiIdValue", "releaseIdValue") + +payload := apirelease.ApiReleaseContract{ + // ... +} + + +read, err := client.WorkspaceApiReleaseUpdate(ctx, id, payload, apirelease.DefaultWorkspaceApiReleaseUpdateOperationOptions()) +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/apimanagement/2022-08-01/apirelease/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apirelease/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apirelease/id_api.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/id_api.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apirelease/id_api.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/id_api.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/id_apirelease.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/id_apirelease.go new file mode 100644 index 000000000000..e93d37f020b7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/id_apirelease.go @@ -0,0 +1,157 @@ +package apirelease + +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(&ApiReleaseId{}) +} + +var _ resourceids.ResourceId = &ApiReleaseId{} + +// ApiReleaseId is a struct representing the Resource ID for a Api Release +type ApiReleaseId struct { + SubscriptionId string + ResourceGroupName string + ServiceName string + WorkspaceId string + ApiId string + ReleaseId string +} + +// NewApiReleaseID returns a new ApiReleaseId struct +func NewApiReleaseID(subscriptionId string, resourceGroupName string, serviceName string, workspaceId string, apiId string, releaseId string) ApiReleaseId { + return ApiReleaseId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + ServiceName: serviceName, + WorkspaceId: workspaceId, + ApiId: apiId, + ReleaseId: releaseId, + } +} + +// ParseApiReleaseID parses 'input' into a ApiReleaseId +func ParseApiReleaseID(input string) (*ApiReleaseId, error) { + parser := resourceids.NewParserFromResourceIdType(&ApiReleaseId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := ApiReleaseId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseApiReleaseIDInsensitively parses 'input' case-insensitively into a ApiReleaseId +// note: this method should only be used for API response data and not user input +func ParseApiReleaseIDInsensitively(input string) (*ApiReleaseId, error) { + parser := resourceids.NewParserFromResourceIdType(&ApiReleaseId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := ApiReleaseId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *ApiReleaseId) 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.ServiceName, ok = input.Parsed["serviceName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "serviceName", input) + } + + if id.WorkspaceId, ok = input.Parsed["workspaceId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "workspaceId", input) + } + + if id.ApiId, ok = input.Parsed["apiId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "apiId", input) + } + + if id.ReleaseId, ok = input.Parsed["releaseId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "releaseId", input) + } + + return nil +} + +// ValidateApiReleaseID checks that 'input' can be parsed as a Api Release ID +func ValidateApiReleaseID(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 := ParseApiReleaseID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Api Release ID +func (id ApiReleaseId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.ApiManagement/service/%s/workspaces/%s/apis/%s/releases/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.ServiceName, id.WorkspaceId, id.ApiId, id.ReleaseId) +} + +// Segments returns a slice of Resource ID Segments which comprise this Api Release ID +func (id ApiReleaseId) 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("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), + resourceids.StaticSegment("staticService", "service", "service"), + resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), + resourceids.UserSpecifiedSegment("workspaceId", "workspaceIdValue"), + resourceids.StaticSegment("staticApis", "apis", "apis"), + resourceids.UserSpecifiedSegment("apiId", "apiIdValue"), + resourceids.StaticSegment("staticReleases", "releases", "releases"), + resourceids.UserSpecifiedSegment("releaseId", "releaseIdValue"), + } +} + +// String returns a human-readable description of this Api Release ID +func (id ApiReleaseId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Service Name: %q", id.ServiceName), + fmt.Sprintf("Workspace: %q", id.WorkspaceId), + fmt.Sprintf("Api: %q", id.ApiId), + fmt.Sprintf("Release: %q", id.ReleaseId), + } + return fmt.Sprintf("Api Release (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apirelease/id_release.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/id_release.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apirelease/id_release.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/id_release.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/id_workspaceapi.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/id_workspaceapi.go new file mode 100644 index 000000000000..708a5e834165 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/id_workspaceapi.go @@ -0,0 +1,148 @@ +package apirelease + +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(&WorkspaceApiId{}) +} + +var _ resourceids.ResourceId = &WorkspaceApiId{} + +// WorkspaceApiId is a struct representing the Resource ID for a Workspace Api +type WorkspaceApiId struct { + SubscriptionId string + ResourceGroupName string + ServiceName string + WorkspaceId string + ApiId string +} + +// NewWorkspaceApiID returns a new WorkspaceApiId struct +func NewWorkspaceApiID(subscriptionId string, resourceGroupName string, serviceName string, workspaceId string, apiId string) WorkspaceApiId { + return WorkspaceApiId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + ServiceName: serviceName, + WorkspaceId: workspaceId, + ApiId: apiId, + } +} + +// ParseWorkspaceApiID parses 'input' into a WorkspaceApiId +func ParseWorkspaceApiID(input string) (*WorkspaceApiId, error) { + parser := resourceids.NewParserFromResourceIdType(&WorkspaceApiId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := WorkspaceApiId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseWorkspaceApiIDInsensitively parses 'input' case-insensitively into a WorkspaceApiId +// note: this method should only be used for API response data and not user input +func ParseWorkspaceApiIDInsensitively(input string) (*WorkspaceApiId, error) { + parser := resourceids.NewParserFromResourceIdType(&WorkspaceApiId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := WorkspaceApiId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *WorkspaceApiId) 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.ServiceName, ok = input.Parsed["serviceName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "serviceName", input) + } + + if id.WorkspaceId, ok = input.Parsed["workspaceId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "workspaceId", input) + } + + if id.ApiId, ok = input.Parsed["apiId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "apiId", input) + } + + return nil +} + +// ValidateWorkspaceApiID checks that 'input' can be parsed as a Workspace Api ID +func ValidateWorkspaceApiID(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 := ParseWorkspaceApiID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Workspace Api ID +func (id WorkspaceApiId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.ApiManagement/service/%s/workspaces/%s/apis/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.ServiceName, id.WorkspaceId, id.ApiId) +} + +// Segments returns a slice of Resource ID Segments which comprise this Workspace Api ID +func (id WorkspaceApiId) 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("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), + resourceids.StaticSegment("staticService", "service", "service"), + resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), + resourceids.UserSpecifiedSegment("workspaceId", "workspaceIdValue"), + resourceids.StaticSegment("staticApis", "apis", "apis"), + resourceids.UserSpecifiedSegment("apiId", "apiIdValue"), + } +} + +// String returns a human-readable description of this Workspace Api ID +func (id WorkspaceApiId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Service Name: %q", id.ServiceName), + fmt.Sprintf("Workspace: %q", id.WorkspaceId), + fmt.Sprintf("Api: %q", id.ApiId), + } + return fmt.Sprintf("Workspace Api (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apirelease/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apirelease/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apirelease/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apirelease/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apirelease/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apirelease/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apirelease/method_getentitytag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/method_getentitytag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apirelease/method_getentitytag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/method_getentitytag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apirelease/method_listbyservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/method_listbyservice.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apirelease/method_listbyservice.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/method_listbyservice.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apirelease/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/method_update.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apirelease/method_update.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/method_update.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/method_workspaceapireleasecreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/method_workspaceapireleasecreateorupdate.go new file mode 100644 index 000000000000..3dcd9fce3ab9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/method_workspaceapireleasecreateorupdate.go @@ -0,0 +1,88 @@ +package apirelease + +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 WorkspaceApiReleaseCreateOrUpdateOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *ApiReleaseContract +} + +type WorkspaceApiReleaseCreateOrUpdateOperationOptions struct { + IfMatch *string +} + +func DefaultWorkspaceApiReleaseCreateOrUpdateOperationOptions() WorkspaceApiReleaseCreateOrUpdateOperationOptions { + return WorkspaceApiReleaseCreateOrUpdateOperationOptions{} +} + +func (o WorkspaceApiReleaseCreateOrUpdateOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + if o.IfMatch != nil { + out.Append("If-Match", fmt.Sprintf("%v", *o.IfMatch)) + } + return &out +} + +func (o WorkspaceApiReleaseCreateOrUpdateOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + return &out +} + +func (o WorkspaceApiReleaseCreateOrUpdateOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + + return &out +} + +// WorkspaceApiReleaseCreateOrUpdate ... +func (c ApiReleaseClient) WorkspaceApiReleaseCreateOrUpdate(ctx context.Context, id ApiReleaseId, input ApiReleaseContract, options WorkspaceApiReleaseCreateOrUpdateOperationOptions) (result WorkspaceApiReleaseCreateOrUpdateOperationResponse, 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 ApiReleaseContract + 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/apimanagement/2023-05-01-preview/apirelease/method_workspaceapireleasedelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/method_workspaceapireleasedelete.go new file mode 100644 index 000000000000..0fd63c74e777 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/method_workspaceapireleasedelete.go @@ -0,0 +1,76 @@ +package apirelease + +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 WorkspaceApiReleaseDeleteOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +type WorkspaceApiReleaseDeleteOperationOptions struct { + IfMatch *string +} + +func DefaultWorkspaceApiReleaseDeleteOperationOptions() WorkspaceApiReleaseDeleteOperationOptions { + return WorkspaceApiReleaseDeleteOperationOptions{} +} + +func (o WorkspaceApiReleaseDeleteOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + if o.IfMatch != nil { + out.Append("If-Match", fmt.Sprintf("%v", *o.IfMatch)) + } + return &out +} + +func (o WorkspaceApiReleaseDeleteOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + return &out +} + +func (o WorkspaceApiReleaseDeleteOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + + return &out +} + +// WorkspaceApiReleaseDelete ... +func (c ApiReleaseClient) WorkspaceApiReleaseDelete(ctx context.Context, id ApiReleaseId, options WorkspaceApiReleaseDeleteOperationOptions) (result WorkspaceApiReleaseDeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + 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 + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/method_workspaceapireleaseget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/method_workspaceapireleaseget.go new file mode 100644 index 000000000000..df9e7f1c4c08 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/method_workspaceapireleaseget.go @@ -0,0 +1,54 @@ +package apirelease + +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 WorkspaceApiReleaseGetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *ApiReleaseContract +} + +// WorkspaceApiReleaseGet ... +func (c ApiReleaseClient) WorkspaceApiReleaseGet(ctx context.Context, id ApiReleaseId) (result WorkspaceApiReleaseGetOperationResponse, 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 ApiReleaseContract + 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/apimanagement/2023-05-01-preview/apirelease/method_workspaceapireleasegetentitytag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/method_workspaceapireleasegetentitytag.go new file mode 100644 index 000000000000..561270d9fa83 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/method_workspaceapireleasegetentitytag.go @@ -0,0 +1,46 @@ +package apirelease + +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 WorkspaceApiReleaseGetEntityTagOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// WorkspaceApiReleaseGetEntityTag ... +func (c ApiReleaseClient) WorkspaceApiReleaseGetEntityTag(ctx context.Context, id ApiReleaseId) (result WorkspaceApiReleaseGetEntityTagOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodHead, + 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/apimanagement/2023-05-01-preview/apirelease/method_workspaceapireleaselistbyservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/method_workspaceapireleaselistbyservice.go new file mode 100644 index 000000000000..578ad231c489 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/method_workspaceapireleaselistbyservice.go @@ -0,0 +1,141 @@ +package apirelease + +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 WorkspaceApiReleaseListByServiceOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]ApiReleaseContract +} + +type WorkspaceApiReleaseListByServiceCompleteResult struct { + LatestHttpResponse *http.Response + Items []ApiReleaseContract +} + +type WorkspaceApiReleaseListByServiceOperationOptions struct { + Filter *string + Skip *int64 + Top *int64 +} + +func DefaultWorkspaceApiReleaseListByServiceOperationOptions() WorkspaceApiReleaseListByServiceOperationOptions { + return WorkspaceApiReleaseListByServiceOperationOptions{} +} + +func (o WorkspaceApiReleaseListByServiceOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o WorkspaceApiReleaseListByServiceOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + return &out +} + +func (o WorkspaceApiReleaseListByServiceOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Filter != nil { + out.Append("$filter", fmt.Sprintf("%v", *o.Filter)) + } + if o.Skip != nil { + out.Append("$skip", fmt.Sprintf("%v", *o.Skip)) + } + if o.Top != nil { + out.Append("$top", fmt.Sprintf("%v", *o.Top)) + } + return &out +} + +type WorkspaceApiReleaseListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkspaceApiReleaseListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// WorkspaceApiReleaseListByService ... +func (c ApiReleaseClient) WorkspaceApiReleaseListByService(ctx context.Context, id WorkspaceApiId, options WorkspaceApiReleaseListByServiceOperationOptions) (result WorkspaceApiReleaseListByServiceOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + OptionsObject: options, + Pager: &WorkspaceApiReleaseListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/releases", 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 *[]ApiReleaseContract `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// WorkspaceApiReleaseListByServiceComplete retrieves all the results into a single object +func (c ApiReleaseClient) WorkspaceApiReleaseListByServiceComplete(ctx context.Context, id WorkspaceApiId, options WorkspaceApiReleaseListByServiceOperationOptions) (WorkspaceApiReleaseListByServiceCompleteResult, error) { + return c.WorkspaceApiReleaseListByServiceCompleteMatchingPredicate(ctx, id, options, ApiReleaseContractOperationPredicate{}) +} + +// WorkspaceApiReleaseListByServiceCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c ApiReleaseClient) WorkspaceApiReleaseListByServiceCompleteMatchingPredicate(ctx context.Context, id WorkspaceApiId, options WorkspaceApiReleaseListByServiceOperationOptions, predicate ApiReleaseContractOperationPredicate) (result WorkspaceApiReleaseListByServiceCompleteResult, err error) { + items := make([]ApiReleaseContract, 0) + + resp, err := c.WorkspaceApiReleaseListByService(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 = WorkspaceApiReleaseListByServiceCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/method_workspaceapireleaseupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/method_workspaceapireleaseupdate.go new file mode 100644 index 000000000000..d301c6d2adc5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/method_workspaceapireleaseupdate.go @@ -0,0 +1,87 @@ +package apirelease + +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 WorkspaceApiReleaseUpdateOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *ApiReleaseContract +} + +type WorkspaceApiReleaseUpdateOperationOptions struct { + IfMatch *string +} + +func DefaultWorkspaceApiReleaseUpdateOperationOptions() WorkspaceApiReleaseUpdateOperationOptions { + return WorkspaceApiReleaseUpdateOperationOptions{} +} + +func (o WorkspaceApiReleaseUpdateOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + if o.IfMatch != nil { + out.Append("If-Match", fmt.Sprintf("%v", *o.IfMatch)) + } + return &out +} + +func (o WorkspaceApiReleaseUpdateOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + return &out +} + +func (o WorkspaceApiReleaseUpdateOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + + return &out +} + +// WorkspaceApiReleaseUpdate ... +func (c ApiReleaseClient) WorkspaceApiReleaseUpdate(ctx context.Context, id ApiReleaseId, input ApiReleaseContract, options WorkspaceApiReleaseUpdateOperationOptions) (result WorkspaceApiReleaseUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPatch, + 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 ApiReleaseContract + 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/apimanagement/2022-08-01/apirelease/model_apireleasecontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/model_apireleasecontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apirelease/model_apireleasecontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/model_apireleasecontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apirelease/model_apireleasecontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/model_apireleasecontractproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apirelease/model_apireleasecontractproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/model_apireleasecontractproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apirelease/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apirelease/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apirelease/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/version.go similarity index 86% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apirelease/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/version.go index c32ad9e24841..7f875cd35296 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apirelease/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/version.go @@ -5,7 +5,7 @@ import "fmt" // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2022-08-01" +const defaultApiVersion = "2023-05-01-preview" func userAgent() string { return fmt.Sprintf("hashicorp/go-azure-sdk/apirelease/%s", defaultApiVersion) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/README.md new file mode 100644 index 000000000000..a00df308fe40 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/README.md @@ -0,0 +1,184 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema` Documentation + +The `apischema` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2023-05-01-preview`). + +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/apimanagement/2023-05-01-preview/apischema" +``` + + +### Client Initialization + +```go +client := apischema.NewApiSchemaClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `ApiSchemaClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := apischema.NewApiSchemaID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue", "schemaIdValue") + +payload := apischema.SchemaContract{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload, apischema.DefaultCreateOrUpdateOperationOptions()); err != nil { + // handle the error +} +``` + + +### Example Usage: `ApiSchemaClient.Delete` + +```go +ctx := context.TODO() +id := apischema.NewApiSchemaID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue", "schemaIdValue") + +read, err := client.Delete(ctx, id, apischema.DefaultDeleteOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ApiSchemaClient.Get` + +```go +ctx := context.TODO() +id := apischema.NewApiSchemaID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue", "schemaIdValue") + +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: `ApiSchemaClient.GetEntityTag` + +```go +ctx := context.TODO() +id := apischema.NewApiSchemaID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue", "schemaIdValue") + +read, err := client.GetEntityTag(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ApiSchemaClient.ListByApi` + +```go +ctx := context.TODO() +id := apischema.NewApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue") + +// alternatively `client.ListByApi(ctx, id, apischema.DefaultListByApiOperationOptions())` can be used to do batched pagination +items, err := client.ListByApiComplete(ctx, id, apischema.DefaultListByApiOperationOptions()) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `ApiSchemaClient.WorkspaceApiSchemaCreateOrUpdate` + +```go +ctx := context.TODO() +id := apischema.NewWorkspaceApiSchemaID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "apiIdValue", "schemaIdValue") + +payload := apischema.SchemaContract{ + // ... +} + + +if err := client.WorkspaceApiSchemaCreateOrUpdateThenPoll(ctx, id, payload, apischema.DefaultWorkspaceApiSchemaCreateOrUpdateOperationOptions()); err != nil { + // handle the error +} +``` + + +### Example Usage: `ApiSchemaClient.WorkspaceApiSchemaDelete` + +```go +ctx := context.TODO() +id := apischema.NewWorkspaceApiSchemaID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "apiIdValue", "schemaIdValue") + +read, err := client.WorkspaceApiSchemaDelete(ctx, id, apischema.DefaultWorkspaceApiSchemaDeleteOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ApiSchemaClient.WorkspaceApiSchemaGet` + +```go +ctx := context.TODO() +id := apischema.NewWorkspaceApiSchemaID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "apiIdValue", "schemaIdValue") + +read, err := client.WorkspaceApiSchemaGet(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ApiSchemaClient.WorkspaceApiSchemaGetEntityTag` + +```go +ctx := context.TODO() +id := apischema.NewWorkspaceApiSchemaID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "apiIdValue", "schemaIdValue") + +read, err := client.WorkspaceApiSchemaGetEntityTag(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ApiSchemaClient.WorkspaceApiSchemaListByApi` + +```go +ctx := context.TODO() +id := apischema.NewWorkspaceApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "apiIdValue") + +// alternatively `client.WorkspaceApiSchemaListByApi(ctx, id, apischema.DefaultWorkspaceApiSchemaListByApiOperationOptions())` can be used to do batched pagination +items, err := client.WorkspaceApiSchemaListByApiComplete(ctx, id, apischema.DefaultWorkspaceApiSchemaListByApiOperationOptions()) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apischema/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apischema/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apischema/id_api.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/id_api.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apischema/id_api.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/id_api.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apischema/id_apischema.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/id_apischema.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apischema/id_apischema.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/id_apischema.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/id_workspaceapi.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/id_workspaceapi.go new file mode 100644 index 000000000000..a3b95e32e100 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/id_workspaceapi.go @@ -0,0 +1,148 @@ +package apischema + +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(&WorkspaceApiId{}) +} + +var _ resourceids.ResourceId = &WorkspaceApiId{} + +// WorkspaceApiId is a struct representing the Resource ID for a Workspace Api +type WorkspaceApiId struct { + SubscriptionId string + ResourceGroupName string + ServiceName string + WorkspaceId string + ApiId string +} + +// NewWorkspaceApiID returns a new WorkspaceApiId struct +func NewWorkspaceApiID(subscriptionId string, resourceGroupName string, serviceName string, workspaceId string, apiId string) WorkspaceApiId { + return WorkspaceApiId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + ServiceName: serviceName, + WorkspaceId: workspaceId, + ApiId: apiId, + } +} + +// ParseWorkspaceApiID parses 'input' into a WorkspaceApiId +func ParseWorkspaceApiID(input string) (*WorkspaceApiId, error) { + parser := resourceids.NewParserFromResourceIdType(&WorkspaceApiId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := WorkspaceApiId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseWorkspaceApiIDInsensitively parses 'input' case-insensitively into a WorkspaceApiId +// note: this method should only be used for API response data and not user input +func ParseWorkspaceApiIDInsensitively(input string) (*WorkspaceApiId, error) { + parser := resourceids.NewParserFromResourceIdType(&WorkspaceApiId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := WorkspaceApiId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *WorkspaceApiId) 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.ServiceName, ok = input.Parsed["serviceName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "serviceName", input) + } + + if id.WorkspaceId, ok = input.Parsed["workspaceId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "workspaceId", input) + } + + if id.ApiId, ok = input.Parsed["apiId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "apiId", input) + } + + return nil +} + +// ValidateWorkspaceApiID checks that 'input' can be parsed as a Workspace Api ID +func ValidateWorkspaceApiID(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 := ParseWorkspaceApiID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Workspace Api ID +func (id WorkspaceApiId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.ApiManagement/service/%s/workspaces/%s/apis/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.ServiceName, id.WorkspaceId, id.ApiId) +} + +// Segments returns a slice of Resource ID Segments which comprise this Workspace Api ID +func (id WorkspaceApiId) 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("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), + resourceids.StaticSegment("staticService", "service", "service"), + resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), + resourceids.UserSpecifiedSegment("workspaceId", "workspaceIdValue"), + resourceids.StaticSegment("staticApis", "apis", "apis"), + resourceids.UserSpecifiedSegment("apiId", "apiIdValue"), + } +} + +// String returns a human-readable description of this Workspace Api ID +func (id WorkspaceApiId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Service Name: %q", id.ServiceName), + fmt.Sprintf("Workspace: %q", id.WorkspaceId), + fmt.Sprintf("Api: %q", id.ApiId), + } + return fmt.Sprintf("Workspace Api (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/id_workspaceapischema.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/id_workspaceapischema.go new file mode 100644 index 000000000000..2b8ca6ceea18 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/id_workspaceapischema.go @@ -0,0 +1,157 @@ +package apischema + +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(&WorkspaceApiSchemaId{}) +} + +var _ resourceids.ResourceId = &WorkspaceApiSchemaId{} + +// WorkspaceApiSchemaId is a struct representing the Resource ID for a Workspace Api Schema +type WorkspaceApiSchemaId struct { + SubscriptionId string + ResourceGroupName string + ServiceName string + WorkspaceId string + ApiId string + SchemaId string +} + +// NewWorkspaceApiSchemaID returns a new WorkspaceApiSchemaId struct +func NewWorkspaceApiSchemaID(subscriptionId string, resourceGroupName string, serviceName string, workspaceId string, apiId string, schemaId string) WorkspaceApiSchemaId { + return WorkspaceApiSchemaId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + ServiceName: serviceName, + WorkspaceId: workspaceId, + ApiId: apiId, + SchemaId: schemaId, + } +} + +// ParseWorkspaceApiSchemaID parses 'input' into a WorkspaceApiSchemaId +func ParseWorkspaceApiSchemaID(input string) (*WorkspaceApiSchemaId, error) { + parser := resourceids.NewParserFromResourceIdType(&WorkspaceApiSchemaId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := WorkspaceApiSchemaId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseWorkspaceApiSchemaIDInsensitively parses 'input' case-insensitively into a WorkspaceApiSchemaId +// note: this method should only be used for API response data and not user input +func ParseWorkspaceApiSchemaIDInsensitively(input string) (*WorkspaceApiSchemaId, error) { + parser := resourceids.NewParserFromResourceIdType(&WorkspaceApiSchemaId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := WorkspaceApiSchemaId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *WorkspaceApiSchemaId) 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.ServiceName, ok = input.Parsed["serviceName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "serviceName", input) + } + + if id.WorkspaceId, ok = input.Parsed["workspaceId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "workspaceId", input) + } + + if id.ApiId, ok = input.Parsed["apiId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "apiId", input) + } + + if id.SchemaId, ok = input.Parsed["schemaId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "schemaId", input) + } + + return nil +} + +// ValidateWorkspaceApiSchemaID checks that 'input' can be parsed as a Workspace Api Schema ID +func ValidateWorkspaceApiSchemaID(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 := ParseWorkspaceApiSchemaID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Workspace Api Schema ID +func (id WorkspaceApiSchemaId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.ApiManagement/service/%s/workspaces/%s/apis/%s/schemas/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.ServiceName, id.WorkspaceId, id.ApiId, id.SchemaId) +} + +// Segments returns a slice of Resource ID Segments which comprise this Workspace Api Schema ID +func (id WorkspaceApiSchemaId) 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("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), + resourceids.StaticSegment("staticService", "service", "service"), + resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), + resourceids.UserSpecifiedSegment("workspaceId", "workspaceIdValue"), + resourceids.StaticSegment("staticApis", "apis", "apis"), + resourceids.UserSpecifiedSegment("apiId", "apiIdValue"), + resourceids.StaticSegment("staticSchemas", "schemas", "schemas"), + resourceids.UserSpecifiedSegment("schemaId", "schemaIdValue"), + } +} + +// String returns a human-readable description of this Workspace Api Schema ID +func (id WorkspaceApiSchemaId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Service Name: %q", id.ServiceName), + fmt.Sprintf("Workspace: %q", id.WorkspaceId), + fmt.Sprintf("Api: %q", id.ApiId), + fmt.Sprintf("Schema: %q", id.SchemaId), + } + return fmt.Sprintf("Workspace Api Schema (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apischema/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/method_createorupdate.go similarity index 99% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apischema/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/method_createorupdate.go index e9339741550a..6d09c53ad77b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apischema/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/method_createorupdate.go @@ -53,7 +53,6 @@ func (c ApiSchemaClient) CreateOrUpdate(ctx context.Context, id ApiSchemaId, inp opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ - http.StatusAccepted, http.StatusCreated, http.StatusOK, }, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apischema/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apischema/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apischema/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apischema/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apischema/method_getentitytag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/method_getentitytag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apischema/method_getentitytag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/method_getentitytag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apischema/method_listbyapi.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/method_listbyapi.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apischema/method_listbyapi.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/method_listbyapi.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/method_workspaceapischemacreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/method_workspaceapischemacreateorupdate.go new file mode 100644 index 000000000000..86ee733c7042 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/method_workspaceapischemacreateorupdate.go @@ -0,0 +1,103 @@ +package apischema + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type WorkspaceApiSchemaCreateOrUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *SchemaContract +} + +type WorkspaceApiSchemaCreateOrUpdateOperationOptions struct { + IfMatch *string +} + +func DefaultWorkspaceApiSchemaCreateOrUpdateOperationOptions() WorkspaceApiSchemaCreateOrUpdateOperationOptions { + return WorkspaceApiSchemaCreateOrUpdateOperationOptions{} +} + +func (o WorkspaceApiSchemaCreateOrUpdateOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + if o.IfMatch != nil { + out.Append("If-Match", fmt.Sprintf("%v", *o.IfMatch)) + } + return &out +} + +func (o WorkspaceApiSchemaCreateOrUpdateOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + return &out +} + +func (o WorkspaceApiSchemaCreateOrUpdateOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + + return &out +} + +// WorkspaceApiSchemaCreateOrUpdate ... +func (c ApiSchemaClient) WorkspaceApiSchemaCreateOrUpdate(ctx context.Context, id WorkspaceApiSchemaId, input SchemaContract, options WorkspaceApiSchemaCreateOrUpdateOperationOptions) (result WorkspaceApiSchemaCreateOrUpdateOperationResponse, 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 +} + +// WorkspaceApiSchemaCreateOrUpdateThenPoll performs WorkspaceApiSchemaCreateOrUpdate then polls until it's completed +func (c ApiSchemaClient) WorkspaceApiSchemaCreateOrUpdateThenPoll(ctx context.Context, id WorkspaceApiSchemaId, input SchemaContract, options WorkspaceApiSchemaCreateOrUpdateOperationOptions) error { + result, err := c.WorkspaceApiSchemaCreateOrUpdate(ctx, id, input, options) + if err != nil { + return fmt.Errorf("performing WorkspaceApiSchemaCreateOrUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after WorkspaceApiSchemaCreateOrUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/method_workspaceapischemadelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/method_workspaceapischemadelete.go new file mode 100644 index 000000000000..f5c12caff48d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/method_workspaceapischemadelete.go @@ -0,0 +1,79 @@ +package apischema + +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 WorkspaceApiSchemaDeleteOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +type WorkspaceApiSchemaDeleteOperationOptions struct { + Force *bool + IfMatch *string +} + +func DefaultWorkspaceApiSchemaDeleteOperationOptions() WorkspaceApiSchemaDeleteOperationOptions { + return WorkspaceApiSchemaDeleteOperationOptions{} +} + +func (o WorkspaceApiSchemaDeleteOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + if o.IfMatch != nil { + out.Append("If-Match", fmt.Sprintf("%v", *o.IfMatch)) + } + return &out +} + +func (o WorkspaceApiSchemaDeleteOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + return &out +} + +func (o WorkspaceApiSchemaDeleteOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Force != nil { + out.Append("force", fmt.Sprintf("%v", *o.Force)) + } + return &out +} + +// WorkspaceApiSchemaDelete ... +func (c ApiSchemaClient) WorkspaceApiSchemaDelete(ctx context.Context, id WorkspaceApiSchemaId, options WorkspaceApiSchemaDeleteOperationOptions) (result WorkspaceApiSchemaDeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + 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 + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/method_workspaceapischemaget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/method_workspaceapischemaget.go new file mode 100644 index 000000000000..0e2e9ec7b079 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/method_workspaceapischemaget.go @@ -0,0 +1,54 @@ +package apischema + +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 WorkspaceApiSchemaGetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *SchemaContract +} + +// WorkspaceApiSchemaGet ... +func (c ApiSchemaClient) WorkspaceApiSchemaGet(ctx context.Context, id WorkspaceApiSchemaId) (result WorkspaceApiSchemaGetOperationResponse, 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 SchemaContract + 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/apimanagement/2023-05-01-preview/apischema/method_workspaceapischemagetentitytag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/method_workspaceapischemagetentitytag.go new file mode 100644 index 000000000000..5d2d0fb6d6f7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/method_workspaceapischemagetentitytag.go @@ -0,0 +1,46 @@ +package apischema + +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 WorkspaceApiSchemaGetEntityTagOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// WorkspaceApiSchemaGetEntityTag ... +func (c ApiSchemaClient) WorkspaceApiSchemaGetEntityTag(ctx context.Context, id WorkspaceApiSchemaId) (result WorkspaceApiSchemaGetEntityTagOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodHead, + 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/apimanagement/2023-05-01-preview/apischema/method_workspaceapischemalistbyapi.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/method_workspaceapischemalistbyapi.go new file mode 100644 index 000000000000..df9c59dfaf8d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/method_workspaceapischemalistbyapi.go @@ -0,0 +1,141 @@ +package apischema + +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 WorkspaceApiSchemaListByApiOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]SchemaContract +} + +type WorkspaceApiSchemaListByApiCompleteResult struct { + LatestHttpResponse *http.Response + Items []SchemaContract +} + +type WorkspaceApiSchemaListByApiOperationOptions struct { + Filter *string + Skip *int64 + Top *int64 +} + +func DefaultWorkspaceApiSchemaListByApiOperationOptions() WorkspaceApiSchemaListByApiOperationOptions { + return WorkspaceApiSchemaListByApiOperationOptions{} +} + +func (o WorkspaceApiSchemaListByApiOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o WorkspaceApiSchemaListByApiOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + return &out +} + +func (o WorkspaceApiSchemaListByApiOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Filter != nil { + out.Append("$filter", fmt.Sprintf("%v", *o.Filter)) + } + if o.Skip != nil { + out.Append("$skip", fmt.Sprintf("%v", *o.Skip)) + } + if o.Top != nil { + out.Append("$top", fmt.Sprintf("%v", *o.Top)) + } + return &out +} + +type WorkspaceApiSchemaListByApiCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkspaceApiSchemaListByApiCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// WorkspaceApiSchemaListByApi ... +func (c ApiSchemaClient) WorkspaceApiSchemaListByApi(ctx context.Context, id WorkspaceApiId, options WorkspaceApiSchemaListByApiOperationOptions) (result WorkspaceApiSchemaListByApiOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + OptionsObject: options, + Pager: &WorkspaceApiSchemaListByApiCustomPager{}, + Path: fmt.Sprintf("%s/schemas", 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 *[]SchemaContract `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// WorkspaceApiSchemaListByApiComplete retrieves all the results into a single object +func (c ApiSchemaClient) WorkspaceApiSchemaListByApiComplete(ctx context.Context, id WorkspaceApiId, options WorkspaceApiSchemaListByApiOperationOptions) (WorkspaceApiSchemaListByApiCompleteResult, error) { + return c.WorkspaceApiSchemaListByApiCompleteMatchingPredicate(ctx, id, options, SchemaContractOperationPredicate{}) +} + +// WorkspaceApiSchemaListByApiCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c ApiSchemaClient) WorkspaceApiSchemaListByApiCompleteMatchingPredicate(ctx context.Context, id WorkspaceApiId, options WorkspaceApiSchemaListByApiOperationOptions, predicate SchemaContractOperationPredicate) (result WorkspaceApiSchemaListByApiCompleteResult, err error) { + items := make([]SchemaContract, 0) + + resp, err := c.WorkspaceApiSchemaListByApi(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 = WorkspaceApiSchemaListByApiCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apischema/model_schemacontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/model_schemacontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apischema/model_schemacontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/model_schemacontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apischema/model_schemacontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/model_schemacontractproperties.go similarity index 51% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apischema/model_schemacontractproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/model_schemacontractproperties.go index 8b4128199059..d96a1fa1b65b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apischema/model_schemacontractproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/model_schemacontractproperties.go @@ -4,6 +4,7 @@ package apischema // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type SchemaContractProperties struct { - ContentType string `json:"contentType"` - Document SchemaDocumentProperties `json:"document"` + ContentType string `json:"contentType"` + Document SchemaDocumentProperties `json:"document"` + ProvisioningState *string `json:"provisioningState,omitempty"` } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apischema/model_schemadocumentproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/model_schemadocumentproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apischema/model_schemadocumentproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/model_schemadocumentproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apischema/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apischema/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apischema/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/version.go similarity index 86% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apischema/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/version.go index e17a39dae1ab..232173884313 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apischema/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/version.go @@ -5,7 +5,7 @@ import "fmt" // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2022-08-01" +const defaultApiVersion = "2023-05-01-preview" func userAgent() string { return fmt.Sprintf("hashicorp/go-azure-sdk/apischema/%s", defaultApiVersion) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitag/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitag/README.md similarity index 94% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitag/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitag/README.md index 45032ccb8964..41d23bdf2514 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitag/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitag/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitag` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitag` Documentation -The `apitag` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2022-08-01`). +The `apitag` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2023-05-01-preview`). 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/apimanagement/2022-08-01/apitag" +import "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitag" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitag/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitag/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitag/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitag/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitag/id_api.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitag/id_api.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitag/id_api.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitag/id_api.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitag/id_apitag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitag/id_apitag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitag/id_apitag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitag/id_apitag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitag/method_tagassigntoapi.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitag/method_tagassigntoapi.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitag/method_tagassigntoapi.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitag/method_tagassigntoapi.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitag/method_tagdetachfromapi.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitag/method_tagdetachfromapi.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitag/method_tagdetachfromapi.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitag/method_tagdetachfromapi.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitag/method_taggetbyapi.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitag/method_taggetbyapi.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitag/method_taggetbyapi.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitag/method_taggetbyapi.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitag/method_taggetentitystatebyapi.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitag/method_taggetentitystatebyapi.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitag/method_taggetentitystatebyapi.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitag/method_taggetentitystatebyapi.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitag/method_taglistbyapi.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitag/method_taglistbyapi.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitag/method_taglistbyapi.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitag/method_taglistbyapi.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitag/model_tagcontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitag/model_tagcontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitag/model_tagcontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitag/model_tagcontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitag/model_tagcontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitag/model_tagcontractproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitag/model_tagcontractproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitag/model_tagcontractproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitag/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitag/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitag/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitag/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitag/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitag/version.go similarity index 86% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitag/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitag/version.go index 9635300489ed..6665a354b247 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitag/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitag/version.go @@ -5,7 +5,7 @@ import "fmt" // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2022-08-01" +const defaultApiVersion = "2023-05-01-preview" func userAgent() string { return fmt.Sprintf("hashicorp/go-azure-sdk/apitag/%s", defaultApiVersion) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitagdescription/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitagdescription/README.md similarity index 94% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitagdescription/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitagdescription/README.md index dfe875407723..4ad65728dd6f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitagdescription/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitagdescription/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitagdescription` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitagdescription` Documentation -The `apitagdescription` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2022-08-01`). +The `apitagdescription` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2023-05-01-preview`). 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/apimanagement/2022-08-01/apitagdescription" +import "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitagdescription" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitagdescription/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitagdescription/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitagdescription/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitagdescription/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitagdescription/id_api.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitagdescription/id_api.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitagdescription/id_api.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitagdescription/id_api.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitagdescription/id_tagdescription.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitagdescription/id_tagdescription.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitagdescription/id_tagdescription.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitagdescription/id_tagdescription.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitagdescription/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitagdescription/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitagdescription/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitagdescription/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitagdescription/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitagdescription/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitagdescription/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitagdescription/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitagdescription/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitagdescription/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitagdescription/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitagdescription/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitagdescription/method_getentitytag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitagdescription/method_getentitytag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitagdescription/method_getentitytag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitagdescription/method_getentitytag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitagdescription/method_listbyservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitagdescription/method_listbyservice.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitagdescription/method_listbyservice.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitagdescription/method_listbyservice.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitagdescription/model_tagdescriptionbaseproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitagdescription/model_tagdescriptionbaseproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitagdescription/model_tagdescriptionbaseproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitagdescription/model_tagdescriptionbaseproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitagdescription/model_tagdescriptioncontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitagdescription/model_tagdescriptioncontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitagdescription/model_tagdescriptioncontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitagdescription/model_tagdescriptioncontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitagdescription/model_tagdescriptioncontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitagdescription/model_tagdescriptioncontractproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitagdescription/model_tagdescriptioncontractproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitagdescription/model_tagdescriptioncontractproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitagdescription/model_tagdescriptioncreateparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitagdescription/model_tagdescriptioncreateparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitagdescription/model_tagdescriptioncreateparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitagdescription/model_tagdescriptioncreateparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitagdescription/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitagdescription/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitagdescription/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitagdescription/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitagdescription/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitagdescription/version.go similarity index 86% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitagdescription/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitagdescription/version.go index c722dd474b1f..393801c5ceb6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitagdescription/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitagdescription/version.go @@ -5,7 +5,7 @@ import "fmt" // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2022-08-01" +const defaultApiVersion = "2023-05-01-preview" func userAgent() string { return fmt.Sprintf("hashicorp/go-azure-sdk/apitagdescription/%s", defaultApiVersion) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/README.md new file mode 100644 index 000000000000..8c81918db3f4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/README.md @@ -0,0 +1,202 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset` Documentation + +The `apiversionset` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2023-05-01-preview`). + +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/apimanagement/2023-05-01-preview/apiversionset" +``` + + +### Client Initialization + +```go +client := apiversionset.NewApiVersionSetClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `ApiVersionSetClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := apiversionset.NewApiVersionSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "versionSetIdValue") + +payload := apiversionset.ApiVersionSetContract{ + // ... +} + + +read, err := client.CreateOrUpdate(ctx, id, payload, apiversionset.DefaultCreateOrUpdateOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ApiVersionSetClient.Get` + +```go +ctx := context.TODO() +id := apiversionset.NewApiVersionSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "versionSetIdValue") + +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: `ApiVersionSetClient.GetEntityTag` + +```go +ctx := context.TODO() +id := apiversionset.NewApiVersionSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "versionSetIdValue") + +read, err := client.GetEntityTag(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ApiVersionSetClient.ListByService` + +```go +ctx := context.TODO() +id := apiversionset.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue") + +// alternatively `client.ListByService(ctx, id, apiversionset.DefaultListByServiceOperationOptions())` can be used to do batched pagination +items, err := client.ListByServiceComplete(ctx, id, apiversionset.DefaultListByServiceOperationOptions()) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `ApiVersionSetClient.Update` + +```go +ctx := context.TODO() +id := apiversionset.NewApiVersionSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "versionSetIdValue") + +payload := apiversionset.ApiVersionSetUpdateParameters{ + // ... +} + + +read, err := client.Update(ctx, id, payload, apiversionset.DefaultUpdateOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ApiVersionSetClient.WorkspaceApiVersionSetCreateOrUpdate` + +```go +ctx := context.TODO() +id := apiversionset.NewWorkspaceApiVersionSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "versionSetIdValue") + +payload := apiversionset.ApiVersionSetContract{ + // ... +} + + +read, err := client.WorkspaceApiVersionSetCreateOrUpdate(ctx, id, payload, apiversionset.DefaultWorkspaceApiVersionSetCreateOrUpdateOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ApiVersionSetClient.WorkspaceApiVersionSetGet` + +```go +ctx := context.TODO() +id := apiversionset.NewWorkspaceApiVersionSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "versionSetIdValue") + +read, err := client.WorkspaceApiVersionSetGet(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ApiVersionSetClient.WorkspaceApiVersionSetGetEntityTag` + +```go +ctx := context.TODO() +id := apiversionset.NewWorkspaceApiVersionSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "versionSetIdValue") + +read, err := client.WorkspaceApiVersionSetGetEntityTag(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ApiVersionSetClient.WorkspaceApiVersionSetListByService` + +```go +ctx := context.TODO() +id := apiversionset.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue") + +// alternatively `client.WorkspaceApiVersionSetListByService(ctx, id, apiversionset.DefaultWorkspaceApiVersionSetListByServiceOperationOptions())` can be used to do batched pagination +items, err := client.WorkspaceApiVersionSetListByServiceComplete(ctx, id, apiversionset.DefaultWorkspaceApiVersionSetListByServiceOperationOptions()) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `ApiVersionSetClient.WorkspaceApiVersionSetUpdate` + +```go +ctx := context.TODO() +id := apiversionset.NewWorkspaceApiVersionSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "versionSetIdValue") + +payload := apiversionset.ApiVersionSetUpdateParameters{ + // ... +} + + +read, err := client.WorkspaceApiVersionSetUpdate(ctx, id, payload, apiversionset.DefaultWorkspaceApiVersionSetUpdateOperationOptions()) +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/apimanagement/2022-08-01/apiversionset/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apiversionset/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apiversionset/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apiversionset/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apiversionset/id_apiversionset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/id_apiversionset.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apiversionset/id_apiversionset.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/id_apiversionset.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apiversionset/id_service.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/id_service.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apiversionset/id_service.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/id_service.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/id_workspace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/id_workspace.go new file mode 100644 index 000000000000..ffae2571e198 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/id_workspace.go @@ -0,0 +1,139 @@ +package apiversionset + +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(&WorkspaceId{}) +} + +var _ resourceids.ResourceId = &WorkspaceId{} + +// WorkspaceId is a struct representing the Resource ID for a Workspace +type WorkspaceId struct { + SubscriptionId string + ResourceGroupName string + ServiceName string + WorkspaceId string +} + +// NewWorkspaceID returns a new WorkspaceId struct +func NewWorkspaceID(subscriptionId string, resourceGroupName string, serviceName string, workspaceId string) WorkspaceId { + return WorkspaceId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + ServiceName: serviceName, + WorkspaceId: workspaceId, + } +} + +// ParseWorkspaceID parses 'input' into a WorkspaceId +func ParseWorkspaceID(input string) (*WorkspaceId, error) { + parser := resourceids.NewParserFromResourceIdType(&WorkspaceId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := WorkspaceId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseWorkspaceIDInsensitively parses 'input' case-insensitively into a WorkspaceId +// note: this method should only be used for API response data and not user input +func ParseWorkspaceIDInsensitively(input string) (*WorkspaceId, error) { + parser := resourceids.NewParserFromResourceIdType(&WorkspaceId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := WorkspaceId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *WorkspaceId) 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.ServiceName, ok = input.Parsed["serviceName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "serviceName", input) + } + + if id.WorkspaceId, ok = input.Parsed["workspaceId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "workspaceId", input) + } + + return nil +} + +// ValidateWorkspaceID checks that 'input' can be parsed as a Workspace ID +func ValidateWorkspaceID(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 := ParseWorkspaceID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Workspace ID +func (id WorkspaceId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.ApiManagement/service/%s/workspaces/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.ServiceName, id.WorkspaceId) +} + +// Segments returns a slice of Resource ID Segments which comprise this Workspace ID +func (id WorkspaceId) 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("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), + resourceids.StaticSegment("staticService", "service", "service"), + resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), + resourceids.UserSpecifiedSegment("workspaceId", "workspaceIdValue"), + } +} + +// String returns a human-readable description of this Workspace ID +func (id WorkspaceId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Service Name: %q", id.ServiceName), + fmt.Sprintf("Workspace: %q", id.WorkspaceId), + } + return fmt.Sprintf("Workspace (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/id_workspaceapiversionset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/id_workspaceapiversionset.go new file mode 100644 index 000000000000..07c056e413ca --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/id_workspaceapiversionset.go @@ -0,0 +1,148 @@ +package apiversionset + +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(&WorkspaceApiVersionSetId{}) +} + +var _ resourceids.ResourceId = &WorkspaceApiVersionSetId{} + +// WorkspaceApiVersionSetId is a struct representing the Resource ID for a Workspace Api Version Set +type WorkspaceApiVersionSetId struct { + SubscriptionId string + ResourceGroupName string + ServiceName string + WorkspaceId string + VersionSetId string +} + +// NewWorkspaceApiVersionSetID returns a new WorkspaceApiVersionSetId struct +func NewWorkspaceApiVersionSetID(subscriptionId string, resourceGroupName string, serviceName string, workspaceId string, versionSetId string) WorkspaceApiVersionSetId { + return WorkspaceApiVersionSetId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + ServiceName: serviceName, + WorkspaceId: workspaceId, + VersionSetId: versionSetId, + } +} + +// ParseWorkspaceApiVersionSetID parses 'input' into a WorkspaceApiVersionSetId +func ParseWorkspaceApiVersionSetID(input string) (*WorkspaceApiVersionSetId, error) { + parser := resourceids.NewParserFromResourceIdType(&WorkspaceApiVersionSetId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := WorkspaceApiVersionSetId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseWorkspaceApiVersionSetIDInsensitively parses 'input' case-insensitively into a WorkspaceApiVersionSetId +// note: this method should only be used for API response data and not user input +func ParseWorkspaceApiVersionSetIDInsensitively(input string) (*WorkspaceApiVersionSetId, error) { + parser := resourceids.NewParserFromResourceIdType(&WorkspaceApiVersionSetId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := WorkspaceApiVersionSetId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *WorkspaceApiVersionSetId) 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.ServiceName, ok = input.Parsed["serviceName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "serviceName", input) + } + + if id.WorkspaceId, ok = input.Parsed["workspaceId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "workspaceId", input) + } + + if id.VersionSetId, ok = input.Parsed["versionSetId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "versionSetId", input) + } + + return nil +} + +// ValidateWorkspaceApiVersionSetID checks that 'input' can be parsed as a Workspace Api Version Set ID +func ValidateWorkspaceApiVersionSetID(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 := ParseWorkspaceApiVersionSetID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Workspace Api Version Set ID +func (id WorkspaceApiVersionSetId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.ApiManagement/service/%s/workspaces/%s/apiVersionSets/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.ServiceName, id.WorkspaceId, id.VersionSetId) +} + +// Segments returns a slice of Resource ID Segments which comprise this Workspace Api Version Set ID +func (id WorkspaceApiVersionSetId) 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("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), + resourceids.StaticSegment("staticService", "service", "service"), + resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), + resourceids.UserSpecifiedSegment("workspaceId", "workspaceIdValue"), + resourceids.StaticSegment("staticApiVersionSets", "apiVersionSets", "apiVersionSets"), + resourceids.UserSpecifiedSegment("versionSetId", "versionSetIdValue"), + } +} + +// String returns a human-readable description of this Workspace Api Version Set ID +func (id WorkspaceApiVersionSetId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Service Name: %q", id.ServiceName), + fmt.Sprintf("Workspace: %q", id.WorkspaceId), + fmt.Sprintf("Version Set: %q", id.VersionSetId), + } + return fmt.Sprintf("Workspace Api Version Set (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apiversionset/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apiversionset/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apiversionset/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apiversionset/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apiversionset/method_getentitytag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/method_getentitytag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apiversionset/method_getentitytag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/method_getentitytag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apiversionset/method_listbyservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/method_listbyservice.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apiversionset/method_listbyservice.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/method_listbyservice.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apiversionset/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/method_update.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apiversionset/method_update.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/method_update.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/method_workspaceapiversionsetcreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/method_workspaceapiversionsetcreateorupdate.go new file mode 100644 index 000000000000..0fde6db7b9f9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/method_workspaceapiversionsetcreateorupdate.go @@ -0,0 +1,88 @@ +package apiversionset + +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 WorkspaceApiVersionSetCreateOrUpdateOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *ApiVersionSetContract +} + +type WorkspaceApiVersionSetCreateOrUpdateOperationOptions struct { + IfMatch *string +} + +func DefaultWorkspaceApiVersionSetCreateOrUpdateOperationOptions() WorkspaceApiVersionSetCreateOrUpdateOperationOptions { + return WorkspaceApiVersionSetCreateOrUpdateOperationOptions{} +} + +func (o WorkspaceApiVersionSetCreateOrUpdateOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + if o.IfMatch != nil { + out.Append("If-Match", fmt.Sprintf("%v", *o.IfMatch)) + } + return &out +} + +func (o WorkspaceApiVersionSetCreateOrUpdateOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + return &out +} + +func (o WorkspaceApiVersionSetCreateOrUpdateOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + + return &out +} + +// WorkspaceApiVersionSetCreateOrUpdate ... +func (c ApiVersionSetClient) WorkspaceApiVersionSetCreateOrUpdate(ctx context.Context, id WorkspaceApiVersionSetId, input ApiVersionSetContract, options WorkspaceApiVersionSetCreateOrUpdateOperationOptions) (result WorkspaceApiVersionSetCreateOrUpdateOperationResponse, 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 ApiVersionSetContract + 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/apimanagement/2023-05-01-preview/apiversionset/method_workspaceapiversionsetget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/method_workspaceapiversionsetget.go new file mode 100644 index 000000000000..2a61095ca422 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/method_workspaceapiversionsetget.go @@ -0,0 +1,54 @@ +package apiversionset + +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 WorkspaceApiVersionSetGetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *ApiVersionSetContract +} + +// WorkspaceApiVersionSetGet ... +func (c ApiVersionSetClient) WorkspaceApiVersionSetGet(ctx context.Context, id WorkspaceApiVersionSetId) (result WorkspaceApiVersionSetGetOperationResponse, 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 ApiVersionSetContract + 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/apimanagement/2023-05-01-preview/apiversionset/method_workspaceapiversionsetgetentitytag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/method_workspaceapiversionsetgetentitytag.go new file mode 100644 index 000000000000..f5215e184787 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/method_workspaceapiversionsetgetentitytag.go @@ -0,0 +1,46 @@ +package apiversionset + +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 WorkspaceApiVersionSetGetEntityTagOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// WorkspaceApiVersionSetGetEntityTag ... +func (c ApiVersionSetClient) WorkspaceApiVersionSetGetEntityTag(ctx context.Context, id WorkspaceApiVersionSetId) (result WorkspaceApiVersionSetGetEntityTagOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodHead, + 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/apimanagement/2023-05-01-preview/apiversionset/method_workspaceapiversionsetlistbyservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/method_workspaceapiversionsetlistbyservice.go new file mode 100644 index 000000000000..e65dc1b59563 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/method_workspaceapiversionsetlistbyservice.go @@ -0,0 +1,141 @@ +package apiversionset + +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 WorkspaceApiVersionSetListByServiceOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]ApiVersionSetContract +} + +type WorkspaceApiVersionSetListByServiceCompleteResult struct { + LatestHttpResponse *http.Response + Items []ApiVersionSetContract +} + +type WorkspaceApiVersionSetListByServiceOperationOptions struct { + Filter *string + Skip *int64 + Top *int64 +} + +func DefaultWorkspaceApiVersionSetListByServiceOperationOptions() WorkspaceApiVersionSetListByServiceOperationOptions { + return WorkspaceApiVersionSetListByServiceOperationOptions{} +} + +func (o WorkspaceApiVersionSetListByServiceOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o WorkspaceApiVersionSetListByServiceOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + return &out +} + +func (o WorkspaceApiVersionSetListByServiceOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Filter != nil { + out.Append("$filter", fmt.Sprintf("%v", *o.Filter)) + } + if o.Skip != nil { + out.Append("$skip", fmt.Sprintf("%v", *o.Skip)) + } + if o.Top != nil { + out.Append("$top", fmt.Sprintf("%v", *o.Top)) + } + return &out +} + +type WorkspaceApiVersionSetListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkspaceApiVersionSetListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// WorkspaceApiVersionSetListByService ... +func (c ApiVersionSetClient) WorkspaceApiVersionSetListByService(ctx context.Context, id WorkspaceId, options WorkspaceApiVersionSetListByServiceOperationOptions) (result WorkspaceApiVersionSetListByServiceOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + OptionsObject: options, + Pager: &WorkspaceApiVersionSetListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/apiVersionSets", 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 *[]ApiVersionSetContract `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// WorkspaceApiVersionSetListByServiceComplete retrieves all the results into a single object +func (c ApiVersionSetClient) WorkspaceApiVersionSetListByServiceComplete(ctx context.Context, id WorkspaceId, options WorkspaceApiVersionSetListByServiceOperationOptions) (WorkspaceApiVersionSetListByServiceCompleteResult, error) { + return c.WorkspaceApiVersionSetListByServiceCompleteMatchingPredicate(ctx, id, options, ApiVersionSetContractOperationPredicate{}) +} + +// WorkspaceApiVersionSetListByServiceCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c ApiVersionSetClient) WorkspaceApiVersionSetListByServiceCompleteMatchingPredicate(ctx context.Context, id WorkspaceId, options WorkspaceApiVersionSetListByServiceOperationOptions, predicate ApiVersionSetContractOperationPredicate) (result WorkspaceApiVersionSetListByServiceCompleteResult, err error) { + items := make([]ApiVersionSetContract, 0) + + resp, err := c.WorkspaceApiVersionSetListByService(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 = WorkspaceApiVersionSetListByServiceCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/method_workspaceapiversionsetupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/method_workspaceapiversionsetupdate.go new file mode 100644 index 000000000000..dda3ecdb80b9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/method_workspaceapiversionsetupdate.go @@ -0,0 +1,87 @@ +package apiversionset + +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 WorkspaceApiVersionSetUpdateOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *ApiVersionSetContract +} + +type WorkspaceApiVersionSetUpdateOperationOptions struct { + IfMatch *string +} + +func DefaultWorkspaceApiVersionSetUpdateOperationOptions() WorkspaceApiVersionSetUpdateOperationOptions { + return WorkspaceApiVersionSetUpdateOperationOptions{} +} + +func (o WorkspaceApiVersionSetUpdateOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + if o.IfMatch != nil { + out.Append("If-Match", fmt.Sprintf("%v", *o.IfMatch)) + } + return &out +} + +func (o WorkspaceApiVersionSetUpdateOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + return &out +} + +func (o WorkspaceApiVersionSetUpdateOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + + return &out +} + +// WorkspaceApiVersionSetUpdate ... +func (c ApiVersionSetClient) WorkspaceApiVersionSetUpdate(ctx context.Context, id WorkspaceApiVersionSetId, input ApiVersionSetUpdateParameters, options WorkspaceApiVersionSetUpdateOperationOptions) (result WorkspaceApiVersionSetUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPatch, + 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 ApiVersionSetContract + 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/apimanagement/2022-08-01/apiversionset/model_apiversionsetcontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/model_apiversionsetcontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apiversionset/model_apiversionsetcontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/model_apiversionsetcontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apiversionset/model_apiversionsetcontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/model_apiversionsetcontractproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apiversionset/model_apiversionsetcontractproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/model_apiversionsetcontractproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apiversionset/model_apiversionsetupdateparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/model_apiversionsetupdateparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apiversionset/model_apiversionsetupdateparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/model_apiversionsetupdateparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apiversionset/model_apiversionsetupdateparametersproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/model_apiversionsetupdateparametersproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apiversionset/model_apiversionsetupdateparametersproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/model_apiversionsetupdateparametersproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apiversionset/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apiversionset/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apiversionset/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/version.go similarity index 86% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apiversionset/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/version.go index e2bee2fe2451..6c5b200226b3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apiversionset/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/version.go @@ -5,7 +5,7 @@ import "fmt" // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2022-08-01" +const defaultApiVersion = "2023-05-01-preview" func userAgent() string { return fmt.Sprintf("hashicorp/go-azure-sdk/apiversionset/%s", defaultApiVersion) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apiversionsets/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionsets/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apiversionsets/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionsets/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apiversionsets/id_apiversionset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionsets/id_apiversionset.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apiversionsets/id_apiversionset.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionsets/id_apiversionset.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionsets/id_workspaceapiversionset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionsets/id_workspaceapiversionset.go new file mode 100644 index 000000000000..c5271af64dc9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionsets/id_workspaceapiversionset.go @@ -0,0 +1,148 @@ +package apiversionsets + +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(&WorkspaceApiVersionSetId{}) +} + +var _ resourceids.ResourceId = &WorkspaceApiVersionSetId{} + +// WorkspaceApiVersionSetId is a struct representing the Resource ID for a Workspace Api Version Set +type WorkspaceApiVersionSetId struct { + SubscriptionId string + ResourceGroupName string + ServiceName string + WorkspaceId string + VersionSetId string +} + +// NewWorkspaceApiVersionSetID returns a new WorkspaceApiVersionSetId struct +func NewWorkspaceApiVersionSetID(subscriptionId string, resourceGroupName string, serviceName string, workspaceId string, versionSetId string) WorkspaceApiVersionSetId { + return WorkspaceApiVersionSetId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + ServiceName: serviceName, + WorkspaceId: workspaceId, + VersionSetId: versionSetId, + } +} + +// ParseWorkspaceApiVersionSetID parses 'input' into a WorkspaceApiVersionSetId +func ParseWorkspaceApiVersionSetID(input string) (*WorkspaceApiVersionSetId, error) { + parser := resourceids.NewParserFromResourceIdType(&WorkspaceApiVersionSetId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := WorkspaceApiVersionSetId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseWorkspaceApiVersionSetIDInsensitively parses 'input' case-insensitively into a WorkspaceApiVersionSetId +// note: this method should only be used for API response data and not user input +func ParseWorkspaceApiVersionSetIDInsensitively(input string) (*WorkspaceApiVersionSetId, error) { + parser := resourceids.NewParserFromResourceIdType(&WorkspaceApiVersionSetId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := WorkspaceApiVersionSetId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *WorkspaceApiVersionSetId) 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.ServiceName, ok = input.Parsed["serviceName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "serviceName", input) + } + + if id.WorkspaceId, ok = input.Parsed["workspaceId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "workspaceId", input) + } + + if id.VersionSetId, ok = input.Parsed["versionSetId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "versionSetId", input) + } + + return nil +} + +// ValidateWorkspaceApiVersionSetID checks that 'input' can be parsed as a Workspace Api Version Set ID +func ValidateWorkspaceApiVersionSetID(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 := ParseWorkspaceApiVersionSetID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Workspace Api Version Set ID +func (id WorkspaceApiVersionSetId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.ApiManagement/service/%s/workspaces/%s/apiVersionSets/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.ServiceName, id.WorkspaceId, id.VersionSetId) +} + +// Segments returns a slice of Resource ID Segments which comprise this Workspace Api Version Set ID +func (id WorkspaceApiVersionSetId) 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("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), + resourceids.StaticSegment("staticService", "service", "service"), + resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), + resourceids.UserSpecifiedSegment("workspaceId", "workspaceIdValue"), + resourceids.StaticSegment("staticApiVersionSets", "apiVersionSets", "apiVersionSets"), + resourceids.UserSpecifiedSegment("versionSetId", "versionSetIdValue"), + } +} + +// String returns a human-readable description of this Workspace Api Version Set ID +func (id WorkspaceApiVersionSetId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Service Name: %q", id.ServiceName), + fmt.Sprintf("Workspace: %q", id.WorkspaceId), + fmt.Sprintf("Version Set: %q", id.VersionSetId), + } + return fmt.Sprintf("Workspace Api Version Set (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apiversionsets/method_apiversionsetdelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionsets/method_apiversionsetdelete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apiversionsets/method_apiversionsetdelete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionsets/method_apiversionsetdelete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionsets/method_workspaceapiversionsetdelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionsets/method_workspaceapiversionsetdelete.go new file mode 100644 index 000000000000..bef988a2083a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionsets/method_workspaceapiversionsetdelete.go @@ -0,0 +1,76 @@ +package apiversionsets + +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 WorkspaceApiVersionSetDeleteOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +type WorkspaceApiVersionSetDeleteOperationOptions struct { + IfMatch *string +} + +func DefaultWorkspaceApiVersionSetDeleteOperationOptions() WorkspaceApiVersionSetDeleteOperationOptions { + return WorkspaceApiVersionSetDeleteOperationOptions{} +} + +func (o WorkspaceApiVersionSetDeleteOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + if o.IfMatch != nil { + out.Append("If-Match", fmt.Sprintf("%v", *o.IfMatch)) + } + return &out +} + +func (o WorkspaceApiVersionSetDeleteOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + return &out +} + +func (o WorkspaceApiVersionSetDeleteOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + + return &out +} + +// WorkspaceApiVersionSetDelete ... +func (c ApiVersionSetsClient) WorkspaceApiVersionSetDelete(ctx context.Context, id WorkspaceApiVersionSetId, options WorkspaceApiVersionSetDeleteOperationOptions) (result WorkspaceApiVersionSetDeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + 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 + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apiversionsets/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionsets/version.go similarity index 86% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apiversionsets/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionsets/version.go index 8d80596a2360..3a8a22982b66 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apiversionsets/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionsets/version.go @@ -5,7 +5,7 @@ import "fmt" // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2022-08-01" +const defaultApiVersion = "2023-05-01-preview" func userAgent() string { return fmt.Sprintf("hashicorp/go-azure-sdk/apiversionsets/%s", defaultApiVersion) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/authorizationserver/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/authorizationserver/README.md similarity index 95% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/authorizationserver/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/authorizationserver/README.md index 0f67bb049835..0a28f40a9d9c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/authorizationserver/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/authorizationserver/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/authorizationserver` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/authorizationserver` Documentation -The `authorizationserver` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2022-08-01`). +The `authorizationserver` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2023-05-01-preview`). 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/apimanagement/2022-08-01/authorizationserver" +import "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/authorizationserver" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/authorizationserver/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/authorizationserver/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/authorizationserver/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/authorizationserver/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/authorizationserver/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/authorizationserver/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/authorizationserver/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/authorizationserver/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/authorizationserver/id_authorizationserver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/authorizationserver/id_authorizationserver.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/authorizationserver/id_authorizationserver.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/authorizationserver/id_authorizationserver.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/authorizationserver/id_service.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/authorizationserver/id_service.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/authorizationserver/id_service.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/authorizationserver/id_service.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/authorizationserver/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/authorizationserver/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/authorizationserver/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/authorizationserver/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/authorizationserver/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/authorizationserver/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/authorizationserver/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/authorizationserver/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/authorizationserver/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/authorizationserver/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/authorizationserver/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/authorizationserver/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/authorizationserver/method_getentitytag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/authorizationserver/method_getentitytag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/authorizationserver/method_getentitytag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/authorizationserver/method_getentitytag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/authorizationserver/method_listbyservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/authorizationserver/method_listbyservice.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/authorizationserver/method_listbyservice.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/authorizationserver/method_listbyservice.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/authorizationserver/method_listsecrets.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/authorizationserver/method_listsecrets.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/authorizationserver/method_listsecrets.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/authorizationserver/method_listsecrets.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/authorizationserver/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/authorizationserver/method_update.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/authorizationserver/method_update.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/authorizationserver/method_update.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/authorizationserver/model_authorizationservercontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/authorizationserver/model_authorizationservercontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/authorizationserver/model_authorizationservercontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/authorizationserver/model_authorizationservercontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/authorizationserver/model_authorizationservercontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/authorizationserver/model_authorizationservercontractproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/authorizationserver/model_authorizationservercontractproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/authorizationserver/model_authorizationservercontractproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/authorizationserver/model_authorizationserversecretscontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/authorizationserver/model_authorizationserversecretscontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/authorizationserver/model_authorizationserversecretscontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/authorizationserver/model_authorizationserversecretscontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/authorizationserver/model_authorizationserverupdatecontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/authorizationserver/model_authorizationserverupdatecontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/authorizationserver/model_authorizationserverupdatecontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/authorizationserver/model_authorizationserverupdatecontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/authorizationserver/model_authorizationserverupdatecontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/authorizationserver/model_authorizationserverupdatecontractproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/authorizationserver/model_authorizationserverupdatecontractproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/authorizationserver/model_authorizationserverupdatecontractproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/authorizationserver/model_tokenbodyparametercontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/authorizationserver/model_tokenbodyparametercontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/authorizationserver/model_tokenbodyparametercontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/authorizationserver/model_tokenbodyparametercontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/authorizationserver/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/authorizationserver/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/authorizationserver/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/authorizationserver/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/authorizationserver/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/authorizationserver/version.go similarity index 87% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/authorizationserver/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/authorizationserver/version.go index 96576d667e8f..bbcefb40fbb5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/authorizationserver/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/authorizationserver/version.go @@ -5,7 +5,7 @@ import "fmt" // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2022-08-01" +const defaultApiVersion = "2023-05-01-preview" func userAgent() string { return fmt.Sprintf("hashicorp/go-azure-sdk/authorizationserver/%s", defaultApiVersion) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/backend/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/README.md similarity index 95% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/backend/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/README.md index 79ef0ce249cb..40568a0d9d5d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/backend/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/backend` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend` Documentation -The `backend` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2022-08-01`). +The `backend` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2023-05-01-preview`). 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/apimanagement/2022-08-01/backend" +import "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/backend/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/backend/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/backend/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/constants.go similarity index 56% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/backend/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/constants.go index fe71e64cb91f..225cfa96d569 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/backend/constants.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/constants.go @@ -49,3 +49,44 @@ func parseBackendProtocol(input string) (*BackendProtocol, error) { out := BackendProtocol(input) return &out, nil } + +type BackendType string + +const ( + BackendTypePool BackendType = "Pool" + BackendTypeSingle BackendType = "Single" +) + +func PossibleValuesForBackendType() []string { + return []string{ + string(BackendTypePool), + string(BackendTypeSingle), + } +} + +func (s *BackendType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseBackendType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseBackendType(input string) (*BackendType, error) { + vals := map[string]BackendType{ + "pool": BackendTypePool, + "single": BackendTypeSingle, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := BackendType(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/backend/id_backend.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/id_backend.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/backend/id_backend.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/id_backend.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/backend/id_service.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/id_service.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/backend/id_service.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/id_service.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/backend/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/backend/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/backend/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/backend/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/backend/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/backend/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/backend/method_getentitytag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/method_getentitytag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/backend/method_getentitytag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/method_getentitytag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/backend/method_listbyservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/method_listbyservice.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/backend/method_listbyservice.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/method_listbyservice.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/backend/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/method_update.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/backend/method_update.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/method_update.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/backend/model_backendauthorizationheadercredentials.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/model_backendauthorizationheadercredentials.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/backend/model_backendauthorizationheadercredentials.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/model_backendauthorizationheadercredentials.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/model_backendbaseparameterspool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/model_backendbaseparameterspool.go new file mode 100644 index 000000000000..24e99e9c3e3f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/model_backendbaseparameterspool.go @@ -0,0 +1,8 @@ +package backend + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BackendBaseParametersPool struct { + Services *[]BackendPoolItem `json:"services,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/model_backendcircuitbreaker.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/model_backendcircuitbreaker.go new file mode 100644 index 000000000000..519d66189312 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/model_backendcircuitbreaker.go @@ -0,0 +1,8 @@ +package backend + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BackendCircuitBreaker struct { + Rules *[]CircuitBreakerRule `json:"rules,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/backend/model_backendcontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/model_backendcontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/backend/model_backendcontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/model_backendcontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/model_backendcontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/model_backendcontractproperties.go new file mode 100644 index 000000000000..df63df7837fc --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/model_backendcontractproperties.go @@ -0,0 +1,19 @@ +package backend + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BackendContractProperties struct { + CircuitBreaker *BackendCircuitBreaker `json:"circuitBreaker,omitempty"` + Credentials *BackendCredentialsContract `json:"credentials,omitempty"` + Description *string `json:"description,omitempty"` + Pool *BackendBaseParametersPool `json:"pool,omitempty"` + Properties *BackendProperties `json:"properties,omitempty"` + Protocol BackendProtocol `json:"protocol"` + Proxy *BackendProxyContract `json:"proxy,omitempty"` + ResourceId *string `json:"resourceId,omitempty"` + Title *string `json:"title,omitempty"` + Tls *BackendTlsProperties `json:"tls,omitempty"` + Type *BackendType `json:"type,omitempty"` + Url string `json:"url"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/backend/model_backendcredentialscontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/model_backendcredentialscontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/backend/model_backendcredentialscontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/model_backendcredentialscontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/model_backendpoolitem.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/model_backendpoolitem.go new file mode 100644 index 000000000000..8200cb181efd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/model_backendpoolitem.go @@ -0,0 +1,8 @@ +package backend + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BackendPoolItem struct { + Id string `json:"id"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/backend/model_backendproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/model_backendproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/backend/model_backendproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/model_backendproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/backend/model_backendproxycontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/model_backendproxycontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/backend/model_backendproxycontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/model_backendproxycontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/backend/model_backendservicefabricclusterproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/model_backendservicefabricclusterproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/backend/model_backendservicefabricclusterproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/model_backendservicefabricclusterproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/backend/model_backendtlsproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/model_backendtlsproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/backend/model_backendtlsproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/model_backendtlsproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/model_backendupdateparameterproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/model_backendupdateparameterproperties.go new file mode 100644 index 000000000000..c8bfe9b234f8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/model_backendupdateparameterproperties.go @@ -0,0 +1,19 @@ +package backend + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BackendUpdateParameterProperties struct { + CircuitBreaker *BackendCircuitBreaker `json:"circuitBreaker,omitempty"` + Credentials *BackendCredentialsContract `json:"credentials,omitempty"` + Description *string `json:"description,omitempty"` + Pool *BackendBaseParametersPool `json:"pool,omitempty"` + Properties *BackendProperties `json:"properties,omitempty"` + Protocol *BackendProtocol `json:"protocol,omitempty"` + Proxy *BackendProxyContract `json:"proxy,omitempty"` + ResourceId *string `json:"resourceId,omitempty"` + Title *string `json:"title,omitempty"` + Tls *BackendTlsProperties `json:"tls,omitempty"` + Type *BackendType `json:"type,omitempty"` + Url *string `json:"url,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/backend/model_backendupdateparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/model_backendupdateparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/backend/model_backendupdateparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/model_backendupdateparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/model_circuitbreakerfailurecondition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/model_circuitbreakerfailurecondition.go new file mode 100644 index 000000000000..4bf225da9b5b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/model_circuitbreakerfailurecondition.go @@ -0,0 +1,12 @@ +package backend + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CircuitBreakerFailureCondition struct { + Count *int64 `json:"count,omitempty"` + ErrorReasons *[]string `json:"errorReasons,omitempty"` + Interval *string `json:"interval,omitempty"` + Percentage *int64 `json:"percentage,omitempty"` + StatusCodeRanges *[]FailureStatusCodeRange `json:"statusCodeRanges,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/model_circuitbreakerrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/model_circuitbreakerrule.go new file mode 100644 index 000000000000..e303141edad5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/model_circuitbreakerrule.go @@ -0,0 +1,10 @@ +package backend + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CircuitBreakerRule struct { + FailureCondition *CircuitBreakerFailureCondition `json:"failureCondition,omitempty"` + Name *string `json:"name,omitempty"` + TripDuration *string `json:"tripDuration,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/model_failurestatuscoderange.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/model_failurestatuscoderange.go new file mode 100644 index 000000000000..785441b644b3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/model_failurestatuscoderange.go @@ -0,0 +1,9 @@ +package backend + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FailureStatusCodeRange struct { + Max *int64 `json:"max,omitempty"` + Min *int64 `json:"min,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/backend/model_x509certificatename.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/model_x509certificatename.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/backend/model_x509certificatename.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/model_x509certificatename.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/backend/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/backend/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/backend/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/version.go similarity index 86% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/backend/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/version.go index a56922c3e2f7..0f5ee3585fd4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/backend/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/version.go @@ -5,7 +5,7 @@ import "fmt" // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2022-08-01" +const defaultApiVersion = "2023-05-01-preview" func userAgent() string { return fmt.Sprintf("hashicorp/go-azure-sdk/backend/%s", defaultApiVersion) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/cache/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/cache/README.md similarity index 95% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/cache/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/cache/README.md index 8736734cd549..e8e0c227b9cb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/cache/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/cache/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/cache` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/cache` Documentation -The `cache` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2022-08-01`). +The `cache` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2023-05-01-preview`). 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/apimanagement/2022-08-01/cache" +import "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/cache" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/cache/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/cache/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/cache/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/cache/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/cache/id_cache.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/cache/id_cache.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/cache/id_cache.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/cache/id_cache.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/cache/id_service.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/cache/id_service.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/cache/id_service.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/cache/id_service.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/cache/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/cache/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/cache/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/cache/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/cache/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/cache/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/cache/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/cache/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/cache/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/cache/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/cache/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/cache/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/cache/method_getentitytag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/cache/method_getentitytag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/cache/method_getentitytag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/cache/method_getentitytag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/cache/method_listbyservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/cache/method_listbyservice.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/cache/method_listbyservice.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/cache/method_listbyservice.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/cache/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/cache/method_update.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/cache/method_update.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/cache/method_update.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/cache/model_cachecontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/cache/model_cachecontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/cache/model_cachecontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/cache/model_cachecontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/cache/model_cachecontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/cache/model_cachecontractproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/cache/model_cachecontractproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/cache/model_cachecontractproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/cache/model_cacheupdateparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/cache/model_cacheupdateparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/cache/model_cacheupdateparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/cache/model_cacheupdateparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/cache/model_cacheupdateproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/cache/model_cacheupdateproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/cache/model_cacheupdateproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/cache/model_cacheupdateproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/cache/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/cache/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/cache/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/cache/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/cache/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/cache/version.go similarity index 86% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/cache/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/cache/version.go index 626c7e566939..9e51ea0b3f16 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/cache/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/cache/version.go @@ -5,7 +5,7 @@ import "fmt" // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2022-08-01" +const defaultApiVersion = "2023-05-01-preview" func userAgent() string { return fmt.Sprintf("hashicorp/go-azure-sdk/cache/%s", defaultApiVersion) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/certificate/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/certificate/README.md similarity index 95% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/certificate/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/certificate/README.md index 2aaa8e83a406..58462386a95c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/certificate/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/certificate/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/certificate` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/certificate` Documentation -The `certificate` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2022-08-01`). +The `certificate` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2023-05-01-preview`). 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/apimanagement/2022-08-01/certificate" +import "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/certificate" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/certificate/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/certificate/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/certificate/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/certificate/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/certificate/id_certificate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/certificate/id_certificate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/certificate/id_certificate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/certificate/id_certificate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/certificate/id_service.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/certificate/id_service.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/certificate/id_service.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/certificate/id_service.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/certificate/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/certificate/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/certificate/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/certificate/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/certificate/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/certificate/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/certificate/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/certificate/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/certificate/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/certificate/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/certificate/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/certificate/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/certificate/method_getentitytag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/certificate/method_getentitytag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/certificate/method_getentitytag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/certificate/method_getentitytag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/certificate/method_listbyservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/certificate/method_listbyservice.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/certificate/method_listbyservice.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/certificate/method_listbyservice.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/certificate/method_refreshsecret.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/certificate/method_refreshsecret.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/certificate/method_refreshsecret.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/certificate/method_refreshsecret.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/certificate/model_certificatecontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/certificate/model_certificatecontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/certificate/model_certificatecontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/certificate/model_certificatecontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/certificate/model_certificatecontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/certificate/model_certificatecontractproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/certificate/model_certificatecontractproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/certificate/model_certificatecontractproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/certificate/model_certificatecreateorupdateparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/certificate/model_certificatecreateorupdateparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/certificate/model_certificatecreateorupdateparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/certificate/model_certificatecreateorupdateparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/certificate/model_certificatecreateorupdateproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/certificate/model_certificatecreateorupdateproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/certificate/model_certificatecreateorupdateproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/certificate/model_certificatecreateorupdateproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/certificate/model_keyvaultcontractcreateproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/certificate/model_keyvaultcontractcreateproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/certificate/model_keyvaultcontractcreateproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/certificate/model_keyvaultcontractcreateproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/certificate/model_keyvaultcontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/certificate/model_keyvaultcontractproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/certificate/model_keyvaultcontractproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/certificate/model_keyvaultcontractproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/certificate/model_keyvaultlastaccessstatuscontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/certificate/model_keyvaultlastaccessstatuscontractproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/certificate/model_keyvaultlastaccessstatuscontractproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/certificate/model_keyvaultlastaccessstatuscontractproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/certificate/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/certificate/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/certificate/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/certificate/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/certificate/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/certificate/version.go similarity index 86% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/certificate/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/certificate/version.go index 0f6757ad4e41..e5319bcbcda5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/certificate/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/certificate/version.go @@ -5,7 +5,7 @@ import "fmt" // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2022-08-01" +const defaultApiVersion = "2023-05-01-preview" func userAgent() string { return fmt.Sprintf("hashicorp/go-azure-sdk/certificate/%s", defaultApiVersion) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/delegationsettings/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/delegationsettings/README.md similarity index 93% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/delegationsettings/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/delegationsettings/README.md index 953671f04914..e58f518166ea 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/delegationsettings/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/delegationsettings/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/delegationsettings` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/delegationsettings` Documentation -The `delegationsettings` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2022-08-01`). +The `delegationsettings` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2023-05-01-preview`). 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/apimanagement/2022-08-01/delegationsettings" +import "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/delegationsettings" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/delegationsettings/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/delegationsettings/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/delegationsettings/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/delegationsettings/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/delegationsettings/id_service.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/delegationsettings/id_service.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/delegationsettings/id_service.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/delegationsettings/id_service.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/delegationsettings/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/delegationsettings/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/delegationsettings/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/delegationsettings/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/delegationsettings/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/delegationsettings/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/delegationsettings/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/delegationsettings/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/delegationsettings/method_getentitytag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/delegationsettings/method_getentitytag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/delegationsettings/method_getentitytag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/delegationsettings/method_getentitytag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/delegationsettings/method_listsecrets.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/delegationsettings/method_listsecrets.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/delegationsettings/method_listsecrets.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/delegationsettings/method_listsecrets.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/delegationsettings/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/delegationsettings/method_update.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/delegationsettings/method_update.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/delegationsettings/method_update.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/delegationsettings/model_portaldelegationsettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/delegationsettings/model_portaldelegationsettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/delegationsettings/model_portaldelegationsettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/delegationsettings/model_portaldelegationsettings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/delegationsettings/model_portaldelegationsettingsproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/delegationsettings/model_portaldelegationsettingsproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/delegationsettings/model_portaldelegationsettingsproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/delegationsettings/model_portaldelegationsettingsproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/delegationsettings/model_portalsettingvalidationkeycontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/delegationsettings/model_portalsettingvalidationkeycontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/delegationsettings/model_portalsettingvalidationkeycontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/delegationsettings/model_portalsettingvalidationkeycontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/delegationsettings/model_registrationdelegationsettingsproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/delegationsettings/model_registrationdelegationsettingsproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/delegationsettings/model_registrationdelegationsettingsproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/delegationsettings/model_registrationdelegationsettingsproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/delegationsettings/model_subscriptionsdelegationsettingsproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/delegationsettings/model_subscriptionsdelegationsettingsproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/delegationsettings/model_subscriptionsdelegationsettingsproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/delegationsettings/model_subscriptionsdelegationsettingsproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/delegationsettings/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/delegationsettings/version.go similarity index 87% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/delegationsettings/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/delegationsettings/version.go index bb1c18fcd2a1..912d1c6d2058 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/delegationsettings/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/delegationsettings/version.go @@ -5,7 +5,7 @@ import "fmt" // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2022-08-01" +const defaultApiVersion = "2023-05-01-preview" func userAgent() string { return fmt.Sprintf("hashicorp/go-azure-sdk/delegationsettings/%s", defaultApiVersion) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/deletedservice/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/deletedservice/README.md similarity index 90% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/deletedservice/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/deletedservice/README.md index 40fe49735d4b..5d248459a0b4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/deletedservice/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/deletedservice/README.md @@ -1,7 +1,7 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/deletedservice` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/deletedservice` Documentation -The `deletedservice` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2022-08-01`). +The `deletedservice` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2023-05-01-preview`). 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/apimanagement/2022-08-01/deletedservice" +import "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/deletedservice" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/deletedservice/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/deletedservice/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/deletedservice/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/deletedservice/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/deletedservice/id_deletedservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/deletedservice/id_deletedservice.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/deletedservice/id_deletedservice.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/deletedservice/id_deletedservice.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/deletedservice/method_getbyname.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/deletedservice/method_getbyname.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/deletedservice/method_getbyname.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/deletedservice/method_getbyname.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/deletedservice/method_listbysubscription.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/deletedservice/method_listbysubscription.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/deletedservice/method_listbysubscription.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/deletedservice/method_listbysubscription.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/deletedservice/method_purge.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/deletedservice/method_purge.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/deletedservice/method_purge.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/deletedservice/method_purge.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/deletedservice/model_deletedservicecontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/deletedservice/model_deletedservicecontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/deletedservice/model_deletedservicecontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/deletedservice/model_deletedservicecontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/deletedservice/model_deletedservicecontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/deletedservice/model_deletedservicecontractproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/deletedservice/model_deletedservicecontractproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/deletedservice/model_deletedservicecontractproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/deletedservice/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/deletedservice/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/deletedservice/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/deletedservice/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/deletedservice/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/deletedservice/version.go similarity index 86% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/deletedservice/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/deletedservice/version.go index c6774123f960..522e93ae233e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/deletedservice/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/deletedservice/version.go @@ -5,7 +5,7 @@ import "fmt" // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2022-08-01" +const defaultApiVersion = "2023-05-01-preview" func userAgent() string { return fmt.Sprintf("hashicorp/go-azure-sdk/deletedservice/%s", defaultApiVersion) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/diagnostic/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/diagnostic/README.md similarity index 95% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/diagnostic/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/diagnostic/README.md index c061e9b79bdb..04da544eadda 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/diagnostic/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/diagnostic/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/diagnostic` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/diagnostic` Documentation -The `diagnostic` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2022-08-01`). +The `diagnostic` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2023-05-01-preview`). 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/apimanagement/2022-08-01/diagnostic" +import "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/diagnostic" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/diagnostic/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/diagnostic/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/diagnostic/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/diagnostic/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/diagnostic/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/diagnostic/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/diagnostic/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/diagnostic/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/diagnostic/id_diagnostic.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/diagnostic/id_diagnostic.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/diagnostic/id_diagnostic.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/diagnostic/id_diagnostic.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/diagnostic/id_service.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/diagnostic/id_service.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/diagnostic/id_service.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/diagnostic/id_service.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/diagnostic/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/diagnostic/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/diagnostic/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/diagnostic/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/diagnostic/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/diagnostic/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/diagnostic/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/diagnostic/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/diagnostic/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/diagnostic/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/diagnostic/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/diagnostic/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/diagnostic/method_getentitytag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/diagnostic/method_getentitytag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/diagnostic/method_getentitytag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/diagnostic/method_getentitytag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/diagnostic/method_listbyservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/diagnostic/method_listbyservice.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/diagnostic/method_listbyservice.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/diagnostic/method_listbyservice.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/diagnostic/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/diagnostic/method_update.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/diagnostic/method_update.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/diagnostic/method_update.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/diagnostic/model_bodydiagnosticsettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/diagnostic/model_bodydiagnosticsettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/diagnostic/model_bodydiagnosticsettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/diagnostic/model_bodydiagnosticsettings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/diagnostic/model_datamasking.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/diagnostic/model_datamasking.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/diagnostic/model_datamasking.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/diagnostic/model_datamasking.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/diagnostic/model_datamaskingentity.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/diagnostic/model_datamaskingentity.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/diagnostic/model_datamaskingentity.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/diagnostic/model_datamaskingentity.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/diagnostic/model_diagnosticcontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/diagnostic/model_diagnosticcontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/diagnostic/model_diagnosticcontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/diagnostic/model_diagnosticcontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/diagnostic/model_diagnosticcontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/diagnostic/model_diagnosticcontractproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/diagnostic/model_diagnosticcontractproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/diagnostic/model_diagnosticcontractproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/diagnostic/model_httpmessagediagnostic.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/diagnostic/model_httpmessagediagnostic.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/diagnostic/model_httpmessagediagnostic.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/diagnostic/model_httpmessagediagnostic.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/diagnostic/model_pipelinediagnosticsettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/diagnostic/model_pipelinediagnosticsettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/diagnostic/model_pipelinediagnosticsettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/diagnostic/model_pipelinediagnosticsettings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/diagnostic/model_samplingsettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/diagnostic/model_samplingsettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/diagnostic/model_samplingsettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/diagnostic/model_samplingsettings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/diagnostic/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/diagnostic/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/diagnostic/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/diagnostic/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/diagnostic/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/diagnostic/version.go similarity index 86% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/diagnostic/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/diagnostic/version.go index c7aee44d8165..bd844d9e46f3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/diagnostic/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/diagnostic/version.go @@ -5,7 +5,7 @@ import "fmt" // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2022-08-01" +const defaultApiVersion = "2023-05-01-preview" func userAgent() string { return fmt.Sprintf("hashicorp/go-azure-sdk/diagnostic/%s", defaultApiVersion) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/emailtemplates/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/emailtemplates/README.md similarity index 94% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/emailtemplates/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/emailtemplates/README.md index feb8fcff8bc4..ed867085c041 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/emailtemplates/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/emailtemplates/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/emailtemplates` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/emailtemplates` Documentation -The `emailtemplates` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2022-08-01`). +The `emailtemplates` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2023-05-01-preview`). 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/apimanagement/2022-08-01/emailtemplates" +import "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/emailtemplates" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/emailtemplates/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/emailtemplates/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/emailtemplates/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/emailtemplates/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/emailtemplates/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/emailtemplates/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/emailtemplates/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/emailtemplates/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/emailtemplates/id_template.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/emailtemplates/id_template.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/emailtemplates/id_template.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/emailtemplates/id_template.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/emailtemplates/method_emailtemplatecreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/emailtemplates/method_emailtemplatecreateorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/emailtemplates/method_emailtemplatecreateorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/emailtemplates/method_emailtemplatecreateorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/emailtemplates/method_emailtemplatedelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/emailtemplates/method_emailtemplatedelete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/emailtemplates/method_emailtemplatedelete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/emailtemplates/method_emailtemplatedelete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/emailtemplates/method_emailtemplateget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/emailtemplates/method_emailtemplateget.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/emailtemplates/method_emailtemplateget.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/emailtemplates/method_emailtemplateget.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/emailtemplates/method_emailtemplategetentitytag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/emailtemplates/method_emailtemplategetentitytag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/emailtemplates/method_emailtemplategetentitytag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/emailtemplates/method_emailtemplategetentitytag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/emailtemplates/method_emailtemplateupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/emailtemplates/method_emailtemplateupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/emailtemplates/method_emailtemplateupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/emailtemplates/method_emailtemplateupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/emailtemplates/model_emailtemplatecontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/emailtemplates/model_emailtemplatecontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/emailtemplates/model_emailtemplatecontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/emailtemplates/model_emailtemplatecontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/emailtemplates/model_emailtemplatecontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/emailtemplates/model_emailtemplatecontractproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/emailtemplates/model_emailtemplatecontractproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/emailtemplates/model_emailtemplatecontractproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/emailtemplates/model_emailtemplateparameterscontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/emailtemplates/model_emailtemplateparameterscontractproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/emailtemplates/model_emailtemplateparameterscontractproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/emailtemplates/model_emailtemplateparameterscontractproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/emailtemplates/model_emailtemplateupdateparameterproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/emailtemplates/model_emailtemplateupdateparameterproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/emailtemplates/model_emailtemplateupdateparameterproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/emailtemplates/model_emailtemplateupdateparameterproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/emailtemplates/model_emailtemplateupdateparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/emailtemplates/model_emailtemplateupdateparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/emailtemplates/model_emailtemplateupdateparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/emailtemplates/model_emailtemplateupdateparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/emailtemplates/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/emailtemplates/version.go similarity index 86% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/emailtemplates/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/emailtemplates/version.go index bb7eb8b1da02..00c2550845c1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/emailtemplates/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/emailtemplates/version.go @@ -5,7 +5,7 @@ import "fmt" // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2022-08-01" +const defaultApiVersion = "2023-05-01-preview" func userAgent() string { return fmt.Sprintf("hashicorp/go-azure-sdk/emailtemplates/%s", defaultApiVersion) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gateway/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gateway/README.md similarity index 95% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gateway/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gateway/README.md index 12b47099205a..aaf470cb911d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gateway/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gateway/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gateway` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gateway` Documentation -The `gateway` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2022-08-01`). +The `gateway` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2023-05-01-preview`). 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/apimanagement/2022-08-01/gateway" +import "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gateway" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gateway/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gateway/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gateway/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gateway/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gateway/id_gateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gateway/id_gateway.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gateway/id_gateway.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gateway/id_gateway.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gateway/id_service.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gateway/id_service.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gateway/id_service.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gateway/id_service.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gateway/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gateway/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gateway/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gateway/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gateway/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gateway/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gateway/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gateway/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gateway/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gateway/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gateway/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gateway/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gateway/method_getentitytag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gateway/method_getentitytag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gateway/method_getentitytag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gateway/method_getentitytag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gateway/method_listbyservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gateway/method_listbyservice.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gateway/method_listbyservice.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gateway/method_listbyservice.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gateway/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gateway/method_update.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gateway/method_update.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gateway/method_update.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gateway/model_gatewaycontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gateway/model_gatewaycontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gateway/model_gatewaycontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gateway/model_gatewaycontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gateway/model_gatewaycontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gateway/model_gatewaycontractproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gateway/model_gatewaycontractproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gateway/model_gatewaycontractproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gateway/model_resourcelocationdatacontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gateway/model_resourcelocationdatacontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gateway/model_resourcelocationdatacontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gateway/model_resourcelocationdatacontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gateway/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gateway/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gateway/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gateway/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gateway/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gateway/version.go similarity index 86% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gateway/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gateway/version.go index 43535cf5fae5..0975caa24fcc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gateway/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gateway/version.go @@ -5,7 +5,7 @@ import "fmt" // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2022-08-01" +const defaultApiVersion = "2023-05-01-preview" func userAgent() string { return fmt.Sprintf("hashicorp/go-azure-sdk/gateway/%s", defaultApiVersion) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayapi/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi/README.md similarity index 93% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayapi/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi/README.md index 79ed4c5cff84..419925665aef 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayapi/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayapi` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi` Documentation -The `gatewayapi` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2022-08-01`). +The `gatewayapi` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2023-05-01-preview`). 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/apimanagement/2022-08-01/gatewayapi" +import "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayapi/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayapi/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayapi/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi/constants.go similarity index 96% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayapi/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi/constants.go index 0da8f5690397..221f18de0371 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayapi/constants.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi/constants.go @@ -13,7 +13,9 @@ type ApiType string const ( ApiTypeGraphql ApiType = "graphql" + ApiTypeGrpc ApiType = "grpc" ApiTypeHTTP ApiType = "http" + ApiTypeOdata ApiType = "odata" ApiTypeSoap ApiType = "soap" ApiTypeWebsocket ApiType = "websocket" ) @@ -21,7 +23,9 @@ const ( func PossibleValuesForApiType() []string { return []string{ string(ApiTypeGraphql), + string(ApiTypeGrpc), string(ApiTypeHTTP), + string(ApiTypeOdata), string(ApiTypeSoap), string(ApiTypeWebsocket), } @@ -43,7 +47,9 @@ func (s *ApiType) UnmarshalJSON(bytes []byte) error { func parseApiType(input string) (*ApiType, error) { vals := map[string]ApiType{ "graphql": ApiTypeGraphql, + "grpc": ApiTypeGrpc, "http": ApiTypeHTTP, + "odata": ApiTypeOdata, "soap": ApiTypeSoap, "websocket": ApiTypeWebsocket, } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayapi/id_gateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi/id_gateway.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayapi/id_gateway.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi/id_gateway.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayapi/id_gatewayapi.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi/id_gatewayapi.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayapi/id_gatewayapi.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi/id_gatewayapi.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayapi/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayapi/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayapi/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayapi/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayapi/method_getentitytag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi/method_getentitytag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayapi/method_getentitytag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi/method_getentitytag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayapi/method_listbyservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi/method_listbyservice.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayapi/method_listbyservice.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi/method_listbyservice.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayapi/model_apicontactinformation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi/model_apicontactinformation.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayapi/model_apicontactinformation.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi/model_apicontactinformation.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayapi/model_apicontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi/model_apicontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayapi/model_apicontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi/model_apicontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayapi/model_apicontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi/model_apicontractproperties.go similarity index 95% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayapi/model_apicontractproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi/model_apicontractproperties.go index b6730933ec82..54fd88900fd0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayapi/model_apicontractproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi/model_apicontractproperties.go @@ -19,6 +19,7 @@ type ApiContractProperties struct { License *ApiLicenseInformation `json:"license,omitempty"` Path string `json:"path"` Protocols *[]Protocol `json:"protocols,omitempty"` + ProvisioningState *string `json:"provisioningState,omitempty"` ServiceUrl *string `json:"serviceUrl,omitempty"` SourceApiId *string `json:"sourceApiId,omitempty"` SubscriptionKeyParameterNames *SubscriptionKeyParameterNamesContract `json:"subscriptionKeyParameterNames,omitempty"` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayapi/model_apilicenseinformation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi/model_apilicenseinformation.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayapi/model_apilicenseinformation.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi/model_apilicenseinformation.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayapi/model_apiversionsetcontractdetails.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi/model_apiversionsetcontractdetails.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayapi/model_apiversionsetcontractdetails.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi/model_apiversionsetcontractdetails.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayapi/model_associationcontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi/model_associationcontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayapi/model_associationcontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi/model_associationcontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayapi/model_associationcontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi/model_associationcontractproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayapi/model_associationcontractproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi/model_associationcontractproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayapi/model_authenticationsettingscontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi/model_authenticationsettingscontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayapi/model_authenticationsettingscontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi/model_authenticationsettingscontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayapi/model_oauth2authenticationsettingscontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi/model_oauth2authenticationsettingscontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayapi/model_oauth2authenticationsettingscontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi/model_oauth2authenticationsettingscontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayapi/model_openidauthenticationsettingscontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi/model_openidauthenticationsettingscontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayapi/model_openidauthenticationsettingscontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi/model_openidauthenticationsettingscontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayapi/model_subscriptionkeyparameternamescontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi/model_subscriptionkeyparameternamescontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayapi/model_subscriptionkeyparameternamescontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi/model_subscriptionkeyparameternamescontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayapi/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayapi/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayapi/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi/version.go similarity index 86% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayapi/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi/version.go index c3d7c8e7aa2e..40568bf5d2a3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayapi/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi/version.go @@ -5,7 +5,7 @@ import "fmt" // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2022-08-01" +const defaultApiVersion = "2023-05-01-preview" func userAgent() string { return fmt.Sprintf("hashicorp/go-azure-sdk/gatewayapi/%s", defaultApiVersion) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewaycertificateauthority/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewaycertificateauthority/README.md similarity index 95% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewaycertificateauthority/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewaycertificateauthority/README.md index 694d3336f35d..ce7f71d54d17 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewaycertificateauthority/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewaycertificateauthority/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewaycertificateauthority` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewaycertificateauthority` Documentation -The `gatewaycertificateauthority` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2022-08-01`). +The `gatewaycertificateauthority` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2023-05-01-preview`). 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/apimanagement/2022-08-01/gatewaycertificateauthority" +import "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewaycertificateauthority" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewaycertificateauthority/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewaycertificateauthority/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewaycertificateauthority/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewaycertificateauthority/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewaycertificateauthority/id_certificateauthority.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewaycertificateauthority/id_certificateauthority.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewaycertificateauthority/id_certificateauthority.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewaycertificateauthority/id_certificateauthority.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewaycertificateauthority/id_gateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewaycertificateauthority/id_gateway.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewaycertificateauthority/id_gateway.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewaycertificateauthority/id_gateway.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewaycertificateauthority/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewaycertificateauthority/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewaycertificateauthority/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewaycertificateauthority/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewaycertificateauthority/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewaycertificateauthority/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewaycertificateauthority/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewaycertificateauthority/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewaycertificateauthority/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewaycertificateauthority/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewaycertificateauthority/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewaycertificateauthority/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewaycertificateauthority/method_getentitytag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewaycertificateauthority/method_getentitytag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewaycertificateauthority/method_getentitytag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewaycertificateauthority/method_getentitytag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewaycertificateauthority/method_listbyservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewaycertificateauthority/method_listbyservice.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewaycertificateauthority/method_listbyservice.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewaycertificateauthority/method_listbyservice.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewaycertificateauthority/model_gatewaycertificateauthoritycontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewaycertificateauthority/model_gatewaycertificateauthoritycontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewaycertificateauthority/model_gatewaycertificateauthoritycontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewaycertificateauthority/model_gatewaycertificateauthoritycontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewaycertificateauthority/model_gatewaycertificateauthoritycontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewaycertificateauthority/model_gatewaycertificateauthoritycontractproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewaycertificateauthority/model_gatewaycertificateauthoritycontractproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewaycertificateauthority/model_gatewaycertificateauthoritycontractproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewaycertificateauthority/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewaycertificateauthority/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewaycertificateauthority/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewaycertificateauthority/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewaycertificateauthority/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewaycertificateauthority/version.go similarity index 87% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewaycertificateauthority/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewaycertificateauthority/version.go index 097da870211d..a93c79291ab1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewaycertificateauthority/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewaycertificateauthority/version.go @@ -5,7 +5,7 @@ import "fmt" // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2022-08-01" +const defaultApiVersion = "2023-05-01-preview" func userAgent() string { return fmt.Sprintf("hashicorp/go-azure-sdk/gatewaycertificateauthority/%s", defaultApiVersion) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayhostnameconfiguration/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayhostnameconfiguration/README.md similarity index 95% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayhostnameconfiguration/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayhostnameconfiguration/README.md index 4630be18a591..83f7018fdffb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayhostnameconfiguration/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayhostnameconfiguration/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayhostnameconfiguration` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayhostnameconfiguration` Documentation -The `gatewayhostnameconfiguration` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2022-08-01`). +The `gatewayhostnameconfiguration` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2023-05-01-preview`). 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/apimanagement/2022-08-01/gatewayhostnameconfiguration" +import "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayhostnameconfiguration" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayhostnameconfiguration/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayhostnameconfiguration/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayhostnameconfiguration/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayhostnameconfiguration/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayhostnameconfiguration/id_gateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayhostnameconfiguration/id_gateway.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayhostnameconfiguration/id_gateway.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayhostnameconfiguration/id_gateway.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayhostnameconfiguration/id_hostnameconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayhostnameconfiguration/id_hostnameconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayhostnameconfiguration/id_hostnameconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayhostnameconfiguration/id_hostnameconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayhostnameconfiguration/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayhostnameconfiguration/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayhostnameconfiguration/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayhostnameconfiguration/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayhostnameconfiguration/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayhostnameconfiguration/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayhostnameconfiguration/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayhostnameconfiguration/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayhostnameconfiguration/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayhostnameconfiguration/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayhostnameconfiguration/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayhostnameconfiguration/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayhostnameconfiguration/method_getentitytag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayhostnameconfiguration/method_getentitytag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayhostnameconfiguration/method_getentitytag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayhostnameconfiguration/method_getentitytag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayhostnameconfiguration/method_listbyservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayhostnameconfiguration/method_listbyservice.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayhostnameconfiguration/method_listbyservice.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayhostnameconfiguration/method_listbyservice.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayhostnameconfiguration/model_gatewayhostnameconfigurationcontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayhostnameconfiguration/model_gatewayhostnameconfigurationcontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayhostnameconfiguration/model_gatewayhostnameconfigurationcontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayhostnameconfiguration/model_gatewayhostnameconfigurationcontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayhostnameconfiguration/model_gatewayhostnameconfigurationcontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayhostnameconfiguration/model_gatewayhostnameconfigurationcontractproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayhostnameconfiguration/model_gatewayhostnameconfigurationcontractproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayhostnameconfiguration/model_gatewayhostnameconfigurationcontractproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayhostnameconfiguration/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayhostnameconfiguration/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayhostnameconfiguration/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayhostnameconfiguration/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayhostnameconfiguration/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayhostnameconfiguration/version.go similarity index 87% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayhostnameconfiguration/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayhostnameconfiguration/version.go index c5b6ebffa305..dabea92ee95e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayhostnameconfiguration/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayhostnameconfiguration/version.go @@ -5,7 +5,7 @@ import "fmt" // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2022-08-01" +const defaultApiVersion = "2023-05-01-preview" func userAgent() string { return fmt.Sprintf("hashicorp/go-azure-sdk/gatewayhostnameconfiguration/%s", defaultApiVersion) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/README.md new file mode 100644 index 000000000000..baf0ed706210 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/README.md @@ -0,0 +1,234 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group` Documentation + +The `group` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2023-05-01-preview`). + +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/apimanagement/2023-05-01-preview/group" +``` + + +### Client Initialization + +```go +client := group.NewGroupClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `GroupClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := group.NewGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "groupIdValue") + +payload := group.GroupCreateParameters{ + // ... +} + + +read, err := client.CreateOrUpdate(ctx, id, payload, group.DefaultCreateOrUpdateOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `GroupClient.Delete` + +```go +ctx := context.TODO() +id := group.NewGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "groupIdValue") + +read, err := client.Delete(ctx, id, group.DefaultDeleteOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `GroupClient.Get` + +```go +ctx := context.TODO() +id := group.NewGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "groupIdValue") + +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: `GroupClient.GetEntityTag` + +```go +ctx := context.TODO() +id := group.NewGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "groupIdValue") + +read, err := client.GetEntityTag(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `GroupClient.ListByService` + +```go +ctx := context.TODO() +id := group.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue") + +// alternatively `client.ListByService(ctx, id, group.DefaultListByServiceOperationOptions())` can be used to do batched pagination +items, err := client.ListByServiceComplete(ctx, id, group.DefaultListByServiceOperationOptions()) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `GroupClient.Update` + +```go +ctx := context.TODO() +id := group.NewGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "groupIdValue") + +payload := group.GroupUpdateParameters{ + // ... +} + + +read, err := client.Update(ctx, id, payload, group.DefaultUpdateOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `GroupClient.WorkspaceGroupCreateOrUpdate` + +```go +ctx := context.TODO() +id := group.NewWorkspaceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "groupIdValue") + +payload := group.GroupCreateParameters{ + // ... +} + + +read, err := client.WorkspaceGroupCreateOrUpdate(ctx, id, payload, group.DefaultWorkspaceGroupCreateOrUpdateOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `GroupClient.WorkspaceGroupDelete` + +```go +ctx := context.TODO() +id := group.NewWorkspaceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "groupIdValue") + +read, err := client.WorkspaceGroupDelete(ctx, id, group.DefaultWorkspaceGroupDeleteOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `GroupClient.WorkspaceGroupGet` + +```go +ctx := context.TODO() +id := group.NewWorkspaceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "groupIdValue") + +read, err := client.WorkspaceGroupGet(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `GroupClient.WorkspaceGroupGetEntityTag` + +```go +ctx := context.TODO() +id := group.NewWorkspaceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "groupIdValue") + +read, err := client.WorkspaceGroupGetEntityTag(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `GroupClient.WorkspaceGroupListByService` + +```go +ctx := context.TODO() +id := group.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue") + +// alternatively `client.WorkspaceGroupListByService(ctx, id, group.DefaultWorkspaceGroupListByServiceOperationOptions())` can be used to do batched pagination +items, err := client.WorkspaceGroupListByServiceComplete(ctx, id, group.DefaultWorkspaceGroupListByServiceOperationOptions()) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `GroupClient.WorkspaceGroupUpdate` + +```go +ctx := context.TODO() +id := group.NewWorkspaceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "groupIdValue") + +payload := group.GroupUpdateParameters{ + // ... +} + + +read, err := client.WorkspaceGroupUpdate(ctx, id, payload, group.DefaultWorkspaceGroupUpdateOperationOptions()) +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/apimanagement/2022-08-01/group/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/group/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/group/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/group/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/group/id_group.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/id_group.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/group/id_group.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/id_group.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/group/id_service.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/id_service.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/group/id_service.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/id_service.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/id_workspace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/id_workspace.go new file mode 100644 index 000000000000..2a31e848c5a3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/id_workspace.go @@ -0,0 +1,139 @@ +package group + +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(&WorkspaceId{}) +} + +var _ resourceids.ResourceId = &WorkspaceId{} + +// WorkspaceId is a struct representing the Resource ID for a Workspace +type WorkspaceId struct { + SubscriptionId string + ResourceGroupName string + ServiceName string + WorkspaceId string +} + +// NewWorkspaceID returns a new WorkspaceId struct +func NewWorkspaceID(subscriptionId string, resourceGroupName string, serviceName string, workspaceId string) WorkspaceId { + return WorkspaceId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + ServiceName: serviceName, + WorkspaceId: workspaceId, + } +} + +// ParseWorkspaceID parses 'input' into a WorkspaceId +func ParseWorkspaceID(input string) (*WorkspaceId, error) { + parser := resourceids.NewParserFromResourceIdType(&WorkspaceId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := WorkspaceId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseWorkspaceIDInsensitively parses 'input' case-insensitively into a WorkspaceId +// note: this method should only be used for API response data and not user input +func ParseWorkspaceIDInsensitively(input string) (*WorkspaceId, error) { + parser := resourceids.NewParserFromResourceIdType(&WorkspaceId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := WorkspaceId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *WorkspaceId) 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.ServiceName, ok = input.Parsed["serviceName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "serviceName", input) + } + + if id.WorkspaceId, ok = input.Parsed["workspaceId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "workspaceId", input) + } + + return nil +} + +// ValidateWorkspaceID checks that 'input' can be parsed as a Workspace ID +func ValidateWorkspaceID(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 := ParseWorkspaceID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Workspace ID +func (id WorkspaceId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.ApiManagement/service/%s/workspaces/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.ServiceName, id.WorkspaceId) +} + +// Segments returns a slice of Resource ID Segments which comprise this Workspace ID +func (id WorkspaceId) 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("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), + resourceids.StaticSegment("staticService", "service", "service"), + resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), + resourceids.UserSpecifiedSegment("workspaceId", "workspaceIdValue"), + } +} + +// String returns a human-readable description of this Workspace ID +func (id WorkspaceId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Service Name: %q", id.ServiceName), + fmt.Sprintf("Workspace: %q", id.WorkspaceId), + } + return fmt.Sprintf("Workspace (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/id_workspacegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/id_workspacegroup.go new file mode 100644 index 000000000000..d95eae814345 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/id_workspacegroup.go @@ -0,0 +1,148 @@ +package group + +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(&WorkspaceGroupId{}) +} + +var _ resourceids.ResourceId = &WorkspaceGroupId{} + +// WorkspaceGroupId is a struct representing the Resource ID for a Workspace Group +type WorkspaceGroupId struct { + SubscriptionId string + ResourceGroupName string + ServiceName string + WorkspaceId string + GroupId string +} + +// NewWorkspaceGroupID returns a new WorkspaceGroupId struct +func NewWorkspaceGroupID(subscriptionId string, resourceGroupName string, serviceName string, workspaceId string, groupId string) WorkspaceGroupId { + return WorkspaceGroupId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + ServiceName: serviceName, + WorkspaceId: workspaceId, + GroupId: groupId, + } +} + +// ParseWorkspaceGroupID parses 'input' into a WorkspaceGroupId +func ParseWorkspaceGroupID(input string) (*WorkspaceGroupId, error) { + parser := resourceids.NewParserFromResourceIdType(&WorkspaceGroupId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := WorkspaceGroupId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseWorkspaceGroupIDInsensitively parses 'input' case-insensitively into a WorkspaceGroupId +// note: this method should only be used for API response data and not user input +func ParseWorkspaceGroupIDInsensitively(input string) (*WorkspaceGroupId, error) { + parser := resourceids.NewParserFromResourceIdType(&WorkspaceGroupId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := WorkspaceGroupId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *WorkspaceGroupId) 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.ServiceName, ok = input.Parsed["serviceName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "serviceName", input) + } + + if id.WorkspaceId, ok = input.Parsed["workspaceId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "workspaceId", input) + } + + if id.GroupId, ok = input.Parsed["groupId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "groupId", input) + } + + return nil +} + +// ValidateWorkspaceGroupID checks that 'input' can be parsed as a Workspace Group ID +func ValidateWorkspaceGroupID(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 := ParseWorkspaceGroupID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Workspace Group ID +func (id WorkspaceGroupId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.ApiManagement/service/%s/workspaces/%s/groups/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.ServiceName, id.WorkspaceId, id.GroupId) +} + +// Segments returns a slice of Resource ID Segments which comprise this Workspace Group ID +func (id WorkspaceGroupId) 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("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), + resourceids.StaticSegment("staticService", "service", "service"), + resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), + resourceids.UserSpecifiedSegment("workspaceId", "workspaceIdValue"), + resourceids.StaticSegment("staticGroups", "groups", "groups"), + resourceids.UserSpecifiedSegment("groupId", "groupIdValue"), + } +} + +// String returns a human-readable description of this Workspace Group ID +func (id WorkspaceGroupId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Service Name: %q", id.ServiceName), + fmt.Sprintf("Workspace: %q", id.WorkspaceId), + fmt.Sprintf("Group: %q", id.GroupId), + } + return fmt.Sprintf("Workspace Group (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/group/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/group/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/group/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/group/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/group/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/group/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/group/method_getentitytag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/method_getentitytag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/group/method_getentitytag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/method_getentitytag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/group/method_listbyservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/method_listbyservice.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/group/method_listbyservice.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/method_listbyservice.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/group/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/method_update.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/group/method_update.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/method_update.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/method_workspacegroupcreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/method_workspacegroupcreateorupdate.go new file mode 100644 index 000000000000..5ad40a08c477 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/method_workspacegroupcreateorupdate.go @@ -0,0 +1,88 @@ +package group + +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 WorkspaceGroupCreateOrUpdateOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *GroupContract +} + +type WorkspaceGroupCreateOrUpdateOperationOptions struct { + IfMatch *string +} + +func DefaultWorkspaceGroupCreateOrUpdateOperationOptions() WorkspaceGroupCreateOrUpdateOperationOptions { + return WorkspaceGroupCreateOrUpdateOperationOptions{} +} + +func (o WorkspaceGroupCreateOrUpdateOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + if o.IfMatch != nil { + out.Append("If-Match", fmt.Sprintf("%v", *o.IfMatch)) + } + return &out +} + +func (o WorkspaceGroupCreateOrUpdateOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + return &out +} + +func (o WorkspaceGroupCreateOrUpdateOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + + return &out +} + +// WorkspaceGroupCreateOrUpdate ... +func (c GroupClient) WorkspaceGroupCreateOrUpdate(ctx context.Context, id WorkspaceGroupId, input GroupCreateParameters, options WorkspaceGroupCreateOrUpdateOperationOptions) (result WorkspaceGroupCreateOrUpdateOperationResponse, 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 GroupContract + 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/apimanagement/2023-05-01-preview/group/method_workspacegroupdelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/method_workspacegroupdelete.go new file mode 100644 index 000000000000..949a8cb18469 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/method_workspacegroupdelete.go @@ -0,0 +1,76 @@ +package group + +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 WorkspaceGroupDeleteOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +type WorkspaceGroupDeleteOperationOptions struct { + IfMatch *string +} + +func DefaultWorkspaceGroupDeleteOperationOptions() WorkspaceGroupDeleteOperationOptions { + return WorkspaceGroupDeleteOperationOptions{} +} + +func (o WorkspaceGroupDeleteOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + if o.IfMatch != nil { + out.Append("If-Match", fmt.Sprintf("%v", *o.IfMatch)) + } + return &out +} + +func (o WorkspaceGroupDeleteOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + return &out +} + +func (o WorkspaceGroupDeleteOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + + return &out +} + +// WorkspaceGroupDelete ... +func (c GroupClient) WorkspaceGroupDelete(ctx context.Context, id WorkspaceGroupId, options WorkspaceGroupDeleteOperationOptions) (result WorkspaceGroupDeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + 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 + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/method_workspacegroupget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/method_workspacegroupget.go new file mode 100644 index 000000000000..88a4fa8e56be --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/method_workspacegroupget.go @@ -0,0 +1,54 @@ +package group + +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 WorkspaceGroupGetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *GroupContract +} + +// WorkspaceGroupGet ... +func (c GroupClient) WorkspaceGroupGet(ctx context.Context, id WorkspaceGroupId) (result WorkspaceGroupGetOperationResponse, 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 GroupContract + 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/apimanagement/2023-05-01-preview/group/method_workspacegroupgetentitytag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/method_workspacegroupgetentitytag.go new file mode 100644 index 000000000000..6312fdc474c5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/method_workspacegroupgetentitytag.go @@ -0,0 +1,46 @@ +package group + +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 WorkspaceGroupGetEntityTagOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// WorkspaceGroupGetEntityTag ... +func (c GroupClient) WorkspaceGroupGetEntityTag(ctx context.Context, id WorkspaceGroupId) (result WorkspaceGroupGetEntityTagOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodHead, + 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/apimanagement/2023-05-01-preview/group/method_workspacegrouplistbyservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/method_workspacegrouplistbyservice.go new file mode 100644 index 000000000000..2aa11bf1959c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/method_workspacegrouplistbyservice.go @@ -0,0 +1,141 @@ +package group + +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 WorkspaceGroupListByServiceOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]GroupContract +} + +type WorkspaceGroupListByServiceCompleteResult struct { + LatestHttpResponse *http.Response + Items []GroupContract +} + +type WorkspaceGroupListByServiceOperationOptions struct { + Filter *string + Skip *int64 + Top *int64 +} + +func DefaultWorkspaceGroupListByServiceOperationOptions() WorkspaceGroupListByServiceOperationOptions { + return WorkspaceGroupListByServiceOperationOptions{} +} + +func (o WorkspaceGroupListByServiceOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o WorkspaceGroupListByServiceOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + return &out +} + +func (o WorkspaceGroupListByServiceOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Filter != nil { + out.Append("$filter", fmt.Sprintf("%v", *o.Filter)) + } + if o.Skip != nil { + out.Append("$skip", fmt.Sprintf("%v", *o.Skip)) + } + if o.Top != nil { + out.Append("$top", fmt.Sprintf("%v", *o.Top)) + } + return &out +} + +type WorkspaceGroupListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkspaceGroupListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// WorkspaceGroupListByService ... +func (c GroupClient) WorkspaceGroupListByService(ctx context.Context, id WorkspaceId, options WorkspaceGroupListByServiceOperationOptions) (result WorkspaceGroupListByServiceOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + OptionsObject: options, + Pager: &WorkspaceGroupListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/groups", 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 *[]GroupContract `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// WorkspaceGroupListByServiceComplete retrieves all the results into a single object +func (c GroupClient) WorkspaceGroupListByServiceComplete(ctx context.Context, id WorkspaceId, options WorkspaceGroupListByServiceOperationOptions) (WorkspaceGroupListByServiceCompleteResult, error) { + return c.WorkspaceGroupListByServiceCompleteMatchingPredicate(ctx, id, options, GroupContractOperationPredicate{}) +} + +// WorkspaceGroupListByServiceCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c GroupClient) WorkspaceGroupListByServiceCompleteMatchingPredicate(ctx context.Context, id WorkspaceId, options WorkspaceGroupListByServiceOperationOptions, predicate GroupContractOperationPredicate) (result WorkspaceGroupListByServiceCompleteResult, err error) { + items := make([]GroupContract, 0) + + resp, err := c.WorkspaceGroupListByService(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 = WorkspaceGroupListByServiceCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/method_workspacegroupupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/method_workspacegroupupdate.go new file mode 100644 index 000000000000..6e246635560e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/method_workspacegroupupdate.go @@ -0,0 +1,87 @@ +package group + +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 WorkspaceGroupUpdateOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *GroupContract +} + +type WorkspaceGroupUpdateOperationOptions struct { + IfMatch *string +} + +func DefaultWorkspaceGroupUpdateOperationOptions() WorkspaceGroupUpdateOperationOptions { + return WorkspaceGroupUpdateOperationOptions{} +} + +func (o WorkspaceGroupUpdateOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + if o.IfMatch != nil { + out.Append("If-Match", fmt.Sprintf("%v", *o.IfMatch)) + } + return &out +} + +func (o WorkspaceGroupUpdateOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + return &out +} + +func (o WorkspaceGroupUpdateOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + + return &out +} + +// WorkspaceGroupUpdate ... +func (c GroupClient) WorkspaceGroupUpdate(ctx context.Context, id WorkspaceGroupId, input GroupUpdateParameters, options WorkspaceGroupUpdateOperationOptions) (result WorkspaceGroupUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPatch, + 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 GroupContract + 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/apimanagement/2022-08-01/group/model_groupcontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/model_groupcontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/group/model_groupcontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/model_groupcontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/group/model_groupcontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/model_groupcontractproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/group/model_groupcontractproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/model_groupcontractproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/group/model_groupcreateparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/model_groupcreateparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/group/model_groupcreateparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/model_groupcreateparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/group/model_groupcreateparametersproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/model_groupcreateparametersproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/group/model_groupcreateparametersproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/model_groupcreateparametersproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/group/model_groupupdateparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/model_groupupdateparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/group/model_groupupdateparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/model_groupupdateparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/group/model_groupupdateparametersproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/model_groupupdateparametersproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/group/model_groupupdateparametersproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/model_groupupdateparametersproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/group/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/group/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/group/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/version.go similarity index 86% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/group/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/version.go index 3bd4c4e8b258..874e26d08793 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/group/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/version.go @@ -5,7 +5,7 @@ import "fmt" // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2022-08-01" +const defaultApiVersion = "2023-05-01-preview" func userAgent() string { return fmt.Sprintf("hashicorp/go-azure-sdk/group/%s", defaultApiVersion) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/groupuser/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser/README.md similarity index 50% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/groupuser/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser/README.md index 43308179ff3b..94babaeb79af 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/groupuser/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/groupuser` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser` Documentation -The `groupuser` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2022-08-01`). +The `groupuser` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2023-05-01-preview`). 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/apimanagement/2022-08-01/groupuser" +import "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser" ``` @@ -83,3 +83,68 @@ for _, item := range items { // do something } ``` + + +### Example Usage: `GroupUserClient.WorkspaceGroupUserCheckEntityExists` + +```go +ctx := context.TODO() +id := groupuser.NewWorkspaceGroupUserID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "groupIdValue", "userIdValue") + +read, err := client.WorkspaceGroupUserCheckEntityExists(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `GroupUserClient.WorkspaceGroupUserCreate` + +```go +ctx := context.TODO() +id := groupuser.NewWorkspaceGroupUserID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "groupIdValue", "userIdValue") + +read, err := client.WorkspaceGroupUserCreate(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `GroupUserClient.WorkspaceGroupUserDelete` + +```go +ctx := context.TODO() +id := groupuser.NewWorkspaceGroupUserID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "groupIdValue", "userIdValue") + +read, err := client.WorkspaceGroupUserDelete(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `GroupUserClient.WorkspaceGroupUserList` + +```go +ctx := context.TODO() +id := groupuser.NewWorkspaceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "groupIdValue") + +// alternatively `client.WorkspaceGroupUserList(ctx, id, groupuser.DefaultWorkspaceGroupUserListOperationOptions())` can be used to do batched pagination +items, err := client.WorkspaceGroupUserListComplete(ctx, id, groupuser.DefaultWorkspaceGroupUserListOperationOptions()) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/groupuser/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/groupuser/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/groupuser/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/groupuser/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/groupuser/id_group.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser/id_group.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/groupuser/id_group.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser/id_group.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/groupuser/id_groupuser.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser/id_groupuser.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/groupuser/id_groupuser.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser/id_groupuser.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser/id_workspacegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser/id_workspacegroup.go new file mode 100644 index 000000000000..6c67d5dd6e0a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser/id_workspacegroup.go @@ -0,0 +1,148 @@ +package groupuser + +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(&WorkspaceGroupId{}) +} + +var _ resourceids.ResourceId = &WorkspaceGroupId{} + +// WorkspaceGroupId is a struct representing the Resource ID for a Workspace Group +type WorkspaceGroupId struct { + SubscriptionId string + ResourceGroupName string + ServiceName string + WorkspaceId string + GroupId string +} + +// NewWorkspaceGroupID returns a new WorkspaceGroupId struct +func NewWorkspaceGroupID(subscriptionId string, resourceGroupName string, serviceName string, workspaceId string, groupId string) WorkspaceGroupId { + return WorkspaceGroupId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + ServiceName: serviceName, + WorkspaceId: workspaceId, + GroupId: groupId, + } +} + +// ParseWorkspaceGroupID parses 'input' into a WorkspaceGroupId +func ParseWorkspaceGroupID(input string) (*WorkspaceGroupId, error) { + parser := resourceids.NewParserFromResourceIdType(&WorkspaceGroupId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := WorkspaceGroupId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseWorkspaceGroupIDInsensitively parses 'input' case-insensitively into a WorkspaceGroupId +// note: this method should only be used for API response data and not user input +func ParseWorkspaceGroupIDInsensitively(input string) (*WorkspaceGroupId, error) { + parser := resourceids.NewParserFromResourceIdType(&WorkspaceGroupId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := WorkspaceGroupId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *WorkspaceGroupId) 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.ServiceName, ok = input.Parsed["serviceName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "serviceName", input) + } + + if id.WorkspaceId, ok = input.Parsed["workspaceId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "workspaceId", input) + } + + if id.GroupId, ok = input.Parsed["groupId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "groupId", input) + } + + return nil +} + +// ValidateWorkspaceGroupID checks that 'input' can be parsed as a Workspace Group ID +func ValidateWorkspaceGroupID(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 := ParseWorkspaceGroupID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Workspace Group ID +func (id WorkspaceGroupId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.ApiManagement/service/%s/workspaces/%s/groups/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.ServiceName, id.WorkspaceId, id.GroupId) +} + +// Segments returns a slice of Resource ID Segments which comprise this Workspace Group ID +func (id WorkspaceGroupId) 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("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), + resourceids.StaticSegment("staticService", "service", "service"), + resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), + resourceids.UserSpecifiedSegment("workspaceId", "workspaceIdValue"), + resourceids.StaticSegment("staticGroups", "groups", "groups"), + resourceids.UserSpecifiedSegment("groupId", "groupIdValue"), + } +} + +// String returns a human-readable description of this Workspace Group ID +func (id WorkspaceGroupId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Service Name: %q", id.ServiceName), + fmt.Sprintf("Workspace: %q", id.WorkspaceId), + fmt.Sprintf("Group: %q", id.GroupId), + } + return fmt.Sprintf("Workspace Group (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser/id_workspacegroupuser.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser/id_workspacegroupuser.go new file mode 100644 index 000000000000..fd00ae51ba3e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser/id_workspacegroupuser.go @@ -0,0 +1,157 @@ +package groupuser + +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(&WorkspaceGroupUserId{}) +} + +var _ resourceids.ResourceId = &WorkspaceGroupUserId{} + +// WorkspaceGroupUserId is a struct representing the Resource ID for a Workspace Group User +type WorkspaceGroupUserId struct { + SubscriptionId string + ResourceGroupName string + ServiceName string + WorkspaceId string + GroupId string + UserId string +} + +// NewWorkspaceGroupUserID returns a new WorkspaceGroupUserId struct +func NewWorkspaceGroupUserID(subscriptionId string, resourceGroupName string, serviceName string, workspaceId string, groupId string, userId string) WorkspaceGroupUserId { + return WorkspaceGroupUserId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + ServiceName: serviceName, + WorkspaceId: workspaceId, + GroupId: groupId, + UserId: userId, + } +} + +// ParseWorkspaceGroupUserID parses 'input' into a WorkspaceGroupUserId +func ParseWorkspaceGroupUserID(input string) (*WorkspaceGroupUserId, error) { + parser := resourceids.NewParserFromResourceIdType(&WorkspaceGroupUserId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := WorkspaceGroupUserId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseWorkspaceGroupUserIDInsensitively parses 'input' case-insensitively into a WorkspaceGroupUserId +// note: this method should only be used for API response data and not user input +func ParseWorkspaceGroupUserIDInsensitively(input string) (*WorkspaceGroupUserId, error) { + parser := resourceids.NewParserFromResourceIdType(&WorkspaceGroupUserId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := WorkspaceGroupUserId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *WorkspaceGroupUserId) 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.ServiceName, ok = input.Parsed["serviceName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "serviceName", input) + } + + if id.WorkspaceId, ok = input.Parsed["workspaceId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "workspaceId", input) + } + + if id.GroupId, ok = input.Parsed["groupId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "groupId", input) + } + + if id.UserId, ok = input.Parsed["userId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "userId", input) + } + + return nil +} + +// ValidateWorkspaceGroupUserID checks that 'input' can be parsed as a Workspace Group User ID +func ValidateWorkspaceGroupUserID(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 := ParseWorkspaceGroupUserID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Workspace Group User ID +func (id WorkspaceGroupUserId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.ApiManagement/service/%s/workspaces/%s/groups/%s/users/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.ServiceName, id.WorkspaceId, id.GroupId, id.UserId) +} + +// Segments returns a slice of Resource ID Segments which comprise this Workspace Group User ID +func (id WorkspaceGroupUserId) 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("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), + resourceids.StaticSegment("staticService", "service", "service"), + resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), + resourceids.UserSpecifiedSegment("workspaceId", "workspaceIdValue"), + resourceids.StaticSegment("staticGroups", "groups", "groups"), + resourceids.UserSpecifiedSegment("groupId", "groupIdValue"), + resourceids.StaticSegment("staticUsers", "users", "users"), + resourceids.UserSpecifiedSegment("userId", "userIdValue"), + } +} + +// String returns a human-readable description of this Workspace Group User ID +func (id WorkspaceGroupUserId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Service Name: %q", id.ServiceName), + fmt.Sprintf("Workspace: %q", id.WorkspaceId), + fmt.Sprintf("Group: %q", id.GroupId), + fmt.Sprintf("User: %q", id.UserId), + } + return fmt.Sprintf("Workspace Group User (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/groupuser/method_checkentityexists.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser/method_checkentityexists.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/groupuser/method_checkentityexists.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser/method_checkentityexists.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/groupuser/method_create.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser/method_create.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/groupuser/method_create.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser/method_create.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/groupuser/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/groupuser/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/groupuser/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/groupuser/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser/method_workspacegroupusercheckentityexists.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser/method_workspacegroupusercheckentityexists.go new file mode 100644 index 000000000000..20cf84facdac --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser/method_workspacegroupusercheckentityexists.go @@ -0,0 +1,46 @@ +package groupuser + +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 WorkspaceGroupUserCheckEntityExistsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// WorkspaceGroupUserCheckEntityExists ... +func (c GroupUserClient) WorkspaceGroupUserCheckEntityExists(ctx context.Context, id WorkspaceGroupUserId) (result WorkspaceGroupUserCheckEntityExistsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusNoContent, + }, + HttpMethod: http.MethodHead, + 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/apimanagement/2023-05-01-preview/groupuser/method_workspacegroupusercreate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser/method_workspacegroupusercreate.go new file mode 100644 index 000000000000..dd73551832d3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser/method_workspacegroupusercreate.go @@ -0,0 +1,55 @@ +package groupuser + +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 WorkspaceGroupUserCreateOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *UserContract +} + +// WorkspaceGroupUserCreate ... +func (c GroupUserClient) WorkspaceGroupUserCreate(ctx context.Context, id WorkspaceGroupUserId) (result WorkspaceGroupUserCreateOperationResponse, 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 + } + + 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 UserContract + 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/apimanagement/2023-05-01-preview/groupuser/method_workspacegroupuserdelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser/method_workspacegroupuserdelete.go new file mode 100644 index 000000000000..7de0c852b37e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser/method_workspacegroupuserdelete.go @@ -0,0 +1,47 @@ +package groupuser + +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 WorkspaceGroupUserDeleteOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// WorkspaceGroupUserDelete ... +func (c GroupUserClient) WorkspaceGroupUserDelete(ctx context.Context, id WorkspaceGroupUserId) (result WorkspaceGroupUserDeleteOperationResponse, 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/apimanagement/2023-05-01-preview/groupuser/method_workspacegroupuserlist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser/method_workspacegroupuserlist.go new file mode 100644 index 000000000000..c4e2a5270390 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser/method_workspacegroupuserlist.go @@ -0,0 +1,141 @@ +package groupuser + +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 WorkspaceGroupUserListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]UserContract +} + +type WorkspaceGroupUserListCompleteResult struct { + LatestHttpResponse *http.Response + Items []UserContract +} + +type WorkspaceGroupUserListOperationOptions struct { + Filter *string + Skip *int64 + Top *int64 +} + +func DefaultWorkspaceGroupUserListOperationOptions() WorkspaceGroupUserListOperationOptions { + return WorkspaceGroupUserListOperationOptions{} +} + +func (o WorkspaceGroupUserListOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o WorkspaceGroupUserListOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + return &out +} + +func (o WorkspaceGroupUserListOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Filter != nil { + out.Append("$filter", fmt.Sprintf("%v", *o.Filter)) + } + if o.Skip != nil { + out.Append("$skip", fmt.Sprintf("%v", *o.Skip)) + } + if o.Top != nil { + out.Append("$top", fmt.Sprintf("%v", *o.Top)) + } + return &out +} + +type WorkspaceGroupUserListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkspaceGroupUserListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// WorkspaceGroupUserList ... +func (c GroupUserClient) WorkspaceGroupUserList(ctx context.Context, id WorkspaceGroupId, options WorkspaceGroupUserListOperationOptions) (result WorkspaceGroupUserListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + OptionsObject: options, + Pager: &WorkspaceGroupUserListCustomPager{}, + Path: fmt.Sprintf("%s/users", 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 *[]UserContract `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// WorkspaceGroupUserListComplete retrieves all the results into a single object +func (c GroupUserClient) WorkspaceGroupUserListComplete(ctx context.Context, id WorkspaceGroupId, options WorkspaceGroupUserListOperationOptions) (WorkspaceGroupUserListCompleteResult, error) { + return c.WorkspaceGroupUserListCompleteMatchingPredicate(ctx, id, options, UserContractOperationPredicate{}) +} + +// WorkspaceGroupUserListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c GroupUserClient) WorkspaceGroupUserListCompleteMatchingPredicate(ctx context.Context, id WorkspaceGroupId, options WorkspaceGroupUserListOperationOptions, predicate UserContractOperationPredicate) (result WorkspaceGroupUserListCompleteResult, err error) { + items := make([]UserContract, 0) + + resp, err := c.WorkspaceGroupUserList(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 = WorkspaceGroupUserListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/groupuser/model_groupcontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser/model_groupcontractproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/groupuser/model_groupcontractproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser/model_groupcontractproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/groupuser/model_usercontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser/model_usercontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/groupuser/model_usercontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser/model_usercontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/groupuser/model_usercontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser/model_usercontractproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/groupuser/model_usercontractproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser/model_usercontractproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/groupuser/model_useridentitycontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser/model_useridentitycontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/groupuser/model_useridentitycontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser/model_useridentitycontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/groupuser/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/groupuser/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/groupuser/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser/version.go similarity index 86% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/groupuser/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser/version.go index 786ee40b5a1d..088f83323196 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/groupuser/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser/version.go @@ -5,7 +5,7 @@ import "fmt" // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2022-08-01" +const defaultApiVersion = "2023-05-01-preview" func userAgent() string { return fmt.Sprintf("hashicorp/go-azure-sdk/groupuser/%s", defaultApiVersion) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/identityprovider/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider/README.md similarity index 95% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/identityprovider/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider/README.md index 64c97f489c6a..c87a18acb2a3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/identityprovider/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/identityprovider` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider` Documentation -The `identityprovider` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2022-08-01`). +The `identityprovider` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2023-05-01-preview`). 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/apimanagement/2022-08-01/identityprovider" +import "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/identityprovider/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/identityprovider/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/identityprovider/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/identityprovider/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/identityprovider/id_identityprovider.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider/id_identityprovider.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/identityprovider/id_identityprovider.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider/id_identityprovider.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/identityprovider/id_service.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider/id_service.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/identityprovider/id_service.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider/id_service.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/identityprovider/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/identityprovider/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/identityprovider/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/identityprovider/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/identityprovider/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/identityprovider/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/identityprovider/method_getentitytag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider/method_getentitytag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/identityprovider/method_getentitytag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider/method_getentitytag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/identityprovider/method_listbyservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider/method_listbyservice.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/identityprovider/method_listbyservice.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider/method_listbyservice.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/identityprovider/method_listsecrets.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider/method_listsecrets.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/identityprovider/method_listsecrets.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider/method_listsecrets.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/identityprovider/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider/method_update.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/identityprovider/method_update.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider/method_update.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/identityprovider/model_clientsecretcontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider/model_clientsecretcontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/identityprovider/model_clientsecretcontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider/model_clientsecretcontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/identityprovider/model_identityprovidercontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider/model_identityprovidercontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/identityprovider/model_identityprovidercontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider/model_identityprovidercontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/identityprovider/model_identityprovidercontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider/model_identityprovidercontractproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/identityprovider/model_identityprovidercontractproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider/model_identityprovidercontractproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/identityprovider/model_identityprovidercreatecontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider/model_identityprovidercreatecontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/identityprovider/model_identityprovidercreatecontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider/model_identityprovidercreatecontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/identityprovider/model_identityprovidercreatecontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider/model_identityprovidercreatecontractproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/identityprovider/model_identityprovidercreatecontractproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider/model_identityprovidercreatecontractproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/identityprovider/model_identityproviderupdateparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider/model_identityproviderupdateparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/identityprovider/model_identityproviderupdateparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider/model_identityproviderupdateparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/identityprovider/model_identityproviderupdateproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider/model_identityproviderupdateproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/identityprovider/model_identityproviderupdateproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider/model_identityproviderupdateproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/identityprovider/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/identityprovider/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/identityprovider/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider/version.go similarity index 86% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/identityprovider/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider/version.go index c27444a14dae..05aca5bc010e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/identityprovider/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider/version.go @@ -5,7 +5,7 @@ import "fmt" // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2022-08-01" +const defaultApiVersion = "2023-05-01-preview" func userAgent() string { return fmt.Sprintf("hashicorp/go-azure-sdk/identityprovider/%s", defaultApiVersion) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/logger/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/logger/README.md similarity index 95% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/logger/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/logger/README.md index 12d55208b07c..f41dbfaefa31 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/logger/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/logger/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/logger` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/logger` Documentation -The `logger` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2022-08-01`). +The `logger` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2023-05-01-preview`). 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/apimanagement/2022-08-01/logger" +import "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/logger" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/logger/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/logger/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/logger/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/logger/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/logger/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/logger/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/logger/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/logger/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/logger/id_logger.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/logger/id_logger.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/logger/id_logger.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/logger/id_logger.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/logger/id_service.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/logger/id_service.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/logger/id_service.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/logger/id_service.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/logger/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/logger/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/logger/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/logger/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/logger/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/logger/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/logger/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/logger/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/logger/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/logger/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/logger/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/logger/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/logger/method_getentitytag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/logger/method_getentitytag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/logger/method_getentitytag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/logger/method_getentitytag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/logger/method_listbyservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/logger/method_listbyservice.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/logger/method_listbyservice.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/logger/method_listbyservice.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/logger/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/logger/method_update.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/logger/method_update.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/logger/method_update.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/logger/model_loggercontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/logger/model_loggercontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/logger/model_loggercontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/logger/model_loggercontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/logger/model_loggercontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/logger/model_loggercontractproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/logger/model_loggercontractproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/logger/model_loggercontractproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/logger/model_loggerupdatecontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/logger/model_loggerupdatecontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/logger/model_loggerupdatecontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/logger/model_loggerupdatecontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/logger/model_loggerupdateparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/logger/model_loggerupdateparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/logger/model_loggerupdateparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/logger/model_loggerupdateparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/logger/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/logger/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/logger/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/logger/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/logger/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/logger/version.go similarity index 86% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/logger/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/logger/version.go index 408041bafe7d..c6a8c085593b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/logger/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/logger/version.go @@ -5,7 +5,7 @@ import "fmt" // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2022-08-01" +const defaultApiVersion = "2023-05-01-preview" func userAgent() string { return fmt.Sprintf("hashicorp/go-azure-sdk/logger/%s", defaultApiVersion) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/README.md new file mode 100644 index 000000000000..3420b2999992 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/README.md @@ -0,0 +1,274 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue` Documentation + +The `namedvalue` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2023-05-01-preview`). + +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/apimanagement/2023-05-01-preview/namedvalue" +``` + + +### Client Initialization + +```go +client := namedvalue.NewNamedValueClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `NamedValueClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := namedvalue.NewNamedValueID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "namedValueIdValue") + +payload := namedvalue.NamedValueCreateContract{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload, namedvalue.DefaultCreateOrUpdateOperationOptions()); err != nil { + // handle the error +} +``` + + +### Example Usage: `NamedValueClient.Delete` + +```go +ctx := context.TODO() +id := namedvalue.NewNamedValueID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "namedValueIdValue") + +read, err := client.Delete(ctx, id, namedvalue.DefaultDeleteOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `NamedValueClient.Get` + +```go +ctx := context.TODO() +id := namedvalue.NewNamedValueID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "namedValueIdValue") + +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: `NamedValueClient.GetEntityTag` + +```go +ctx := context.TODO() +id := namedvalue.NewNamedValueID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "namedValueIdValue") + +read, err := client.GetEntityTag(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `NamedValueClient.ListByService` + +```go +ctx := context.TODO() +id := namedvalue.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue") + +// alternatively `client.ListByService(ctx, id, namedvalue.DefaultListByServiceOperationOptions())` can be used to do batched pagination +items, err := client.ListByServiceComplete(ctx, id, namedvalue.DefaultListByServiceOperationOptions()) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `NamedValueClient.ListValue` + +```go +ctx := context.TODO() +id := namedvalue.NewNamedValueID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "namedValueIdValue") + +read, err := client.ListValue(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `NamedValueClient.RefreshSecret` + +```go +ctx := context.TODO() +id := namedvalue.NewNamedValueID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "namedValueIdValue") + +if err := client.RefreshSecretThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `NamedValueClient.Update` + +```go +ctx := context.TODO() +id := namedvalue.NewNamedValueID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "namedValueIdValue") + +payload := namedvalue.NamedValueUpdateParameters{ + // ... +} + + +if err := client.UpdateThenPoll(ctx, id, payload, namedvalue.DefaultUpdateOperationOptions()); err != nil { + // handle the error +} +``` + + +### Example Usage: `NamedValueClient.WorkspaceNamedValueCreateOrUpdate` + +```go +ctx := context.TODO() +id := namedvalue.NewWorkspaceNamedValueID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "namedValueIdValue") + +payload := namedvalue.NamedValueCreateContract{ + // ... +} + + +if err := client.WorkspaceNamedValueCreateOrUpdateThenPoll(ctx, id, payload, namedvalue.DefaultWorkspaceNamedValueCreateOrUpdateOperationOptions()); err != nil { + // handle the error +} +``` + + +### Example Usage: `NamedValueClient.WorkspaceNamedValueDelete` + +```go +ctx := context.TODO() +id := namedvalue.NewWorkspaceNamedValueID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "namedValueIdValue") + +read, err := client.WorkspaceNamedValueDelete(ctx, id, namedvalue.DefaultWorkspaceNamedValueDeleteOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `NamedValueClient.WorkspaceNamedValueGet` + +```go +ctx := context.TODO() +id := namedvalue.NewWorkspaceNamedValueID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "namedValueIdValue") + +read, err := client.WorkspaceNamedValueGet(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `NamedValueClient.WorkspaceNamedValueGetEntityTag` + +```go +ctx := context.TODO() +id := namedvalue.NewWorkspaceNamedValueID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "namedValueIdValue") + +read, err := client.WorkspaceNamedValueGetEntityTag(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `NamedValueClient.WorkspaceNamedValueListByService` + +```go +ctx := context.TODO() +id := namedvalue.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue") + +// alternatively `client.WorkspaceNamedValueListByService(ctx, id, namedvalue.DefaultWorkspaceNamedValueListByServiceOperationOptions())` can be used to do batched pagination +items, err := client.WorkspaceNamedValueListByServiceComplete(ctx, id, namedvalue.DefaultWorkspaceNamedValueListByServiceOperationOptions()) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `NamedValueClient.WorkspaceNamedValueListValue` + +```go +ctx := context.TODO() +id := namedvalue.NewWorkspaceNamedValueID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "namedValueIdValue") + +read, err := client.WorkspaceNamedValueListValue(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `NamedValueClient.WorkspaceNamedValueRefreshSecret` + +```go +ctx := context.TODO() +id := namedvalue.NewWorkspaceNamedValueID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "namedValueIdValue") + +if err := client.WorkspaceNamedValueRefreshSecretThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `NamedValueClient.WorkspaceNamedValueUpdate` + +```go +ctx := context.TODO() +id := namedvalue.NewWorkspaceNamedValueID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "namedValueIdValue") + +payload := namedvalue.NamedValueUpdateParameters{ + // ... +} + + +if err := client.WorkspaceNamedValueUpdateThenPoll(ctx, id, payload, namedvalue.DefaultWorkspaceNamedValueUpdateOperationOptions()); err != nil { + // handle the error +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/namedvalue/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/namedvalue/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/constants.go new file mode 100644 index 000000000000..8e3d91746b11 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/constants.go @@ -0,0 +1,51 @@ +package namedvalue + +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 KeyVaultRefreshState string + +const ( + KeyVaultRefreshStateFalse KeyVaultRefreshState = "false" + KeyVaultRefreshStateTrue KeyVaultRefreshState = "true" +) + +func PossibleValuesForKeyVaultRefreshState() []string { + return []string{ + string(KeyVaultRefreshStateFalse), + string(KeyVaultRefreshStateTrue), + } +} + +func (s *KeyVaultRefreshState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseKeyVaultRefreshState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseKeyVaultRefreshState(input string) (*KeyVaultRefreshState, error) { + vals := map[string]KeyVaultRefreshState{ + "false": KeyVaultRefreshStateFalse, + "true": KeyVaultRefreshStateTrue, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := KeyVaultRefreshState(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/namedvalue/id_namedvalue.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/id_namedvalue.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/namedvalue/id_namedvalue.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/id_namedvalue.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/namedvalue/id_service.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/id_service.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/namedvalue/id_service.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/id_service.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/id_workspace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/id_workspace.go new file mode 100644 index 000000000000..7487f0004691 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/id_workspace.go @@ -0,0 +1,139 @@ +package namedvalue + +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(&WorkspaceId{}) +} + +var _ resourceids.ResourceId = &WorkspaceId{} + +// WorkspaceId is a struct representing the Resource ID for a Workspace +type WorkspaceId struct { + SubscriptionId string + ResourceGroupName string + ServiceName string + WorkspaceId string +} + +// NewWorkspaceID returns a new WorkspaceId struct +func NewWorkspaceID(subscriptionId string, resourceGroupName string, serviceName string, workspaceId string) WorkspaceId { + return WorkspaceId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + ServiceName: serviceName, + WorkspaceId: workspaceId, + } +} + +// ParseWorkspaceID parses 'input' into a WorkspaceId +func ParseWorkspaceID(input string) (*WorkspaceId, error) { + parser := resourceids.NewParserFromResourceIdType(&WorkspaceId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := WorkspaceId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseWorkspaceIDInsensitively parses 'input' case-insensitively into a WorkspaceId +// note: this method should only be used for API response data and not user input +func ParseWorkspaceIDInsensitively(input string) (*WorkspaceId, error) { + parser := resourceids.NewParserFromResourceIdType(&WorkspaceId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := WorkspaceId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *WorkspaceId) 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.ServiceName, ok = input.Parsed["serviceName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "serviceName", input) + } + + if id.WorkspaceId, ok = input.Parsed["workspaceId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "workspaceId", input) + } + + return nil +} + +// ValidateWorkspaceID checks that 'input' can be parsed as a Workspace ID +func ValidateWorkspaceID(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 := ParseWorkspaceID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Workspace ID +func (id WorkspaceId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.ApiManagement/service/%s/workspaces/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.ServiceName, id.WorkspaceId) +} + +// Segments returns a slice of Resource ID Segments which comprise this Workspace ID +func (id WorkspaceId) 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("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), + resourceids.StaticSegment("staticService", "service", "service"), + resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), + resourceids.UserSpecifiedSegment("workspaceId", "workspaceIdValue"), + } +} + +// String returns a human-readable description of this Workspace ID +func (id WorkspaceId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Service Name: %q", id.ServiceName), + fmt.Sprintf("Workspace: %q", id.WorkspaceId), + } + return fmt.Sprintf("Workspace (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/id_workspacenamedvalue.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/id_workspacenamedvalue.go new file mode 100644 index 000000000000..44f55e1b20ad --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/id_workspacenamedvalue.go @@ -0,0 +1,148 @@ +package namedvalue + +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(&WorkspaceNamedValueId{}) +} + +var _ resourceids.ResourceId = &WorkspaceNamedValueId{} + +// WorkspaceNamedValueId is a struct representing the Resource ID for a Workspace Named Value +type WorkspaceNamedValueId struct { + SubscriptionId string + ResourceGroupName string + ServiceName string + WorkspaceId string + NamedValueId string +} + +// NewWorkspaceNamedValueID returns a new WorkspaceNamedValueId struct +func NewWorkspaceNamedValueID(subscriptionId string, resourceGroupName string, serviceName string, workspaceId string, namedValueId string) WorkspaceNamedValueId { + return WorkspaceNamedValueId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + ServiceName: serviceName, + WorkspaceId: workspaceId, + NamedValueId: namedValueId, + } +} + +// ParseWorkspaceNamedValueID parses 'input' into a WorkspaceNamedValueId +func ParseWorkspaceNamedValueID(input string) (*WorkspaceNamedValueId, error) { + parser := resourceids.NewParserFromResourceIdType(&WorkspaceNamedValueId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := WorkspaceNamedValueId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseWorkspaceNamedValueIDInsensitively parses 'input' case-insensitively into a WorkspaceNamedValueId +// note: this method should only be used for API response data and not user input +func ParseWorkspaceNamedValueIDInsensitively(input string) (*WorkspaceNamedValueId, error) { + parser := resourceids.NewParserFromResourceIdType(&WorkspaceNamedValueId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := WorkspaceNamedValueId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *WorkspaceNamedValueId) 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.ServiceName, ok = input.Parsed["serviceName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "serviceName", input) + } + + if id.WorkspaceId, ok = input.Parsed["workspaceId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "workspaceId", input) + } + + if id.NamedValueId, ok = input.Parsed["namedValueId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "namedValueId", input) + } + + return nil +} + +// ValidateWorkspaceNamedValueID checks that 'input' can be parsed as a Workspace Named Value ID +func ValidateWorkspaceNamedValueID(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 := ParseWorkspaceNamedValueID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Workspace Named Value ID +func (id WorkspaceNamedValueId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.ApiManagement/service/%s/workspaces/%s/namedValues/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.ServiceName, id.WorkspaceId, id.NamedValueId) +} + +// Segments returns a slice of Resource ID Segments which comprise this Workspace Named Value ID +func (id WorkspaceNamedValueId) 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("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), + resourceids.StaticSegment("staticService", "service", "service"), + resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), + resourceids.UserSpecifiedSegment("workspaceId", "workspaceIdValue"), + resourceids.StaticSegment("staticNamedValues", "namedValues", "namedValues"), + resourceids.UserSpecifiedSegment("namedValueId", "namedValueIdValue"), + } +} + +// String returns a human-readable description of this Workspace Named Value ID +func (id WorkspaceNamedValueId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Service Name: %q", id.ServiceName), + fmt.Sprintf("Workspace: %q", id.WorkspaceId), + fmt.Sprintf("Named Value: %q", id.NamedValueId), + } + return fmt.Sprintf("Workspace Named Value (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/namedvalue/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_createorupdate.go similarity index 99% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/namedvalue/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_createorupdate.go index 85ad5426efe9..a12111f998e7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/namedvalue/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_createorupdate.go @@ -53,7 +53,6 @@ func (c NamedValueClient) CreateOrUpdate(ctx context.Context, id NamedValueId, i opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ - http.StatusAccepted, http.StatusCreated, http.StatusOK, }, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/namedvalue/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/namedvalue/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/namedvalue/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/namedvalue/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/namedvalue/method_getentitytag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_getentitytag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/namedvalue/method_getentitytag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_getentitytag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/namedvalue/method_listbyservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_listbyservice.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/namedvalue/method_listbyservice.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_listbyservice.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/namedvalue/method_listvalue.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_listvalue.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/namedvalue/method_listvalue.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_listvalue.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/namedvalue/method_refreshsecret.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_refreshsecret.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/namedvalue/method_refreshsecret.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_refreshsecret.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/namedvalue/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_update.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/namedvalue/method_update.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_update.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_workspacenamedvaluecreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_workspacenamedvaluecreateorupdate.go new file mode 100644 index 000000000000..84290f98fbb2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_workspacenamedvaluecreateorupdate.go @@ -0,0 +1,103 @@ +package namedvalue + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type WorkspaceNamedValueCreateOrUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *NamedValueContract +} + +type WorkspaceNamedValueCreateOrUpdateOperationOptions struct { + IfMatch *string +} + +func DefaultWorkspaceNamedValueCreateOrUpdateOperationOptions() WorkspaceNamedValueCreateOrUpdateOperationOptions { + return WorkspaceNamedValueCreateOrUpdateOperationOptions{} +} + +func (o WorkspaceNamedValueCreateOrUpdateOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + if o.IfMatch != nil { + out.Append("If-Match", fmt.Sprintf("%v", *o.IfMatch)) + } + return &out +} + +func (o WorkspaceNamedValueCreateOrUpdateOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + return &out +} + +func (o WorkspaceNamedValueCreateOrUpdateOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + + return &out +} + +// WorkspaceNamedValueCreateOrUpdate ... +func (c NamedValueClient) WorkspaceNamedValueCreateOrUpdate(ctx context.Context, id WorkspaceNamedValueId, input NamedValueCreateContract, options WorkspaceNamedValueCreateOrUpdateOperationOptions) (result WorkspaceNamedValueCreateOrUpdateOperationResponse, 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 +} + +// WorkspaceNamedValueCreateOrUpdateThenPoll performs WorkspaceNamedValueCreateOrUpdate then polls until it's completed +func (c NamedValueClient) WorkspaceNamedValueCreateOrUpdateThenPoll(ctx context.Context, id WorkspaceNamedValueId, input NamedValueCreateContract, options WorkspaceNamedValueCreateOrUpdateOperationOptions) error { + result, err := c.WorkspaceNamedValueCreateOrUpdate(ctx, id, input, options) + if err != nil { + return fmt.Errorf("performing WorkspaceNamedValueCreateOrUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after WorkspaceNamedValueCreateOrUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_workspacenamedvaluedelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_workspacenamedvaluedelete.go new file mode 100644 index 000000000000..7d05e234c48f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_workspacenamedvaluedelete.go @@ -0,0 +1,76 @@ +package namedvalue + +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 WorkspaceNamedValueDeleteOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +type WorkspaceNamedValueDeleteOperationOptions struct { + IfMatch *string +} + +func DefaultWorkspaceNamedValueDeleteOperationOptions() WorkspaceNamedValueDeleteOperationOptions { + return WorkspaceNamedValueDeleteOperationOptions{} +} + +func (o WorkspaceNamedValueDeleteOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + if o.IfMatch != nil { + out.Append("If-Match", fmt.Sprintf("%v", *o.IfMatch)) + } + return &out +} + +func (o WorkspaceNamedValueDeleteOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + return &out +} + +func (o WorkspaceNamedValueDeleteOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + + return &out +} + +// WorkspaceNamedValueDelete ... +func (c NamedValueClient) WorkspaceNamedValueDelete(ctx context.Context, id WorkspaceNamedValueId, options WorkspaceNamedValueDeleteOperationOptions) (result WorkspaceNamedValueDeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + 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 + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_workspacenamedvalueget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_workspacenamedvalueget.go new file mode 100644 index 000000000000..fd48731656e4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_workspacenamedvalueget.go @@ -0,0 +1,54 @@ +package namedvalue + +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 WorkspaceNamedValueGetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *NamedValueContract +} + +// WorkspaceNamedValueGet ... +func (c NamedValueClient) WorkspaceNamedValueGet(ctx context.Context, id WorkspaceNamedValueId) (result WorkspaceNamedValueGetOperationResponse, 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 NamedValueContract + 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/apimanagement/2023-05-01-preview/namedvalue/method_workspacenamedvaluegetentitytag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_workspacenamedvaluegetentitytag.go new file mode 100644 index 000000000000..f1b4ee37389d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_workspacenamedvaluegetentitytag.go @@ -0,0 +1,46 @@ +package namedvalue + +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 WorkspaceNamedValueGetEntityTagOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// WorkspaceNamedValueGetEntityTag ... +func (c NamedValueClient) WorkspaceNamedValueGetEntityTag(ctx context.Context, id WorkspaceNamedValueId) (result WorkspaceNamedValueGetEntityTagOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodHead, + 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/apimanagement/2023-05-01-preview/namedvalue/method_workspacenamedvaluelistbyservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_workspacenamedvaluelistbyservice.go new file mode 100644 index 000000000000..87a17e3f92fb --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_workspacenamedvaluelistbyservice.go @@ -0,0 +1,145 @@ +package namedvalue + +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 WorkspaceNamedValueListByServiceOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]NamedValueContract +} + +type WorkspaceNamedValueListByServiceCompleteResult struct { + LatestHttpResponse *http.Response + Items []NamedValueContract +} + +type WorkspaceNamedValueListByServiceOperationOptions struct { + Filter *string + IsKeyVaultRefreshFailed *KeyVaultRefreshState + Skip *int64 + Top *int64 +} + +func DefaultWorkspaceNamedValueListByServiceOperationOptions() WorkspaceNamedValueListByServiceOperationOptions { + return WorkspaceNamedValueListByServiceOperationOptions{} +} + +func (o WorkspaceNamedValueListByServiceOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o WorkspaceNamedValueListByServiceOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + return &out +} + +func (o WorkspaceNamedValueListByServiceOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Filter != nil { + out.Append("$filter", fmt.Sprintf("%v", *o.Filter)) + } + if o.IsKeyVaultRefreshFailed != nil { + out.Append("isKeyVaultRefreshFailed", fmt.Sprintf("%v", *o.IsKeyVaultRefreshFailed)) + } + if o.Skip != nil { + out.Append("$skip", fmt.Sprintf("%v", *o.Skip)) + } + if o.Top != nil { + out.Append("$top", fmt.Sprintf("%v", *o.Top)) + } + return &out +} + +type WorkspaceNamedValueListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkspaceNamedValueListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// WorkspaceNamedValueListByService ... +func (c NamedValueClient) WorkspaceNamedValueListByService(ctx context.Context, id WorkspaceId, options WorkspaceNamedValueListByServiceOperationOptions) (result WorkspaceNamedValueListByServiceOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + OptionsObject: options, + Pager: &WorkspaceNamedValueListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/namedValues", 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 *[]NamedValueContract `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// WorkspaceNamedValueListByServiceComplete retrieves all the results into a single object +func (c NamedValueClient) WorkspaceNamedValueListByServiceComplete(ctx context.Context, id WorkspaceId, options WorkspaceNamedValueListByServiceOperationOptions) (WorkspaceNamedValueListByServiceCompleteResult, error) { + return c.WorkspaceNamedValueListByServiceCompleteMatchingPredicate(ctx, id, options, NamedValueContractOperationPredicate{}) +} + +// WorkspaceNamedValueListByServiceCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c NamedValueClient) WorkspaceNamedValueListByServiceCompleteMatchingPredicate(ctx context.Context, id WorkspaceId, options WorkspaceNamedValueListByServiceOperationOptions, predicate NamedValueContractOperationPredicate) (result WorkspaceNamedValueListByServiceCompleteResult, err error) { + items := make([]NamedValueContract, 0) + + resp, err := c.WorkspaceNamedValueListByService(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 = WorkspaceNamedValueListByServiceCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_workspacenamedvaluelistvalue.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_workspacenamedvaluelistvalue.go new file mode 100644 index 000000000000..ced0d6c16004 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_workspacenamedvaluelistvalue.go @@ -0,0 +1,55 @@ +package namedvalue + +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 WorkspaceNamedValueListValueOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *NamedValueSecretContract +} + +// WorkspaceNamedValueListValue ... +func (c NamedValueClient) WorkspaceNamedValueListValue(ctx context.Context, id WorkspaceNamedValueId) (result WorkspaceNamedValueListValueOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/listValue", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + 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 NamedValueSecretContract + 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/apimanagement/2023-05-01-preview/namedvalue/method_workspacenamedvaluerefreshsecret.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_workspacenamedvaluerefreshsecret.go new file mode 100644 index 000000000000..a5b0c11b0dc9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_workspacenamedvaluerefreshsecret.go @@ -0,0 +1,71 @@ +package namedvalue + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type WorkspaceNamedValueRefreshSecretOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *NamedValueContract +} + +// WorkspaceNamedValueRefreshSecret ... +func (c NamedValueClient) WorkspaceNamedValueRefreshSecret(ctx context.Context, id WorkspaceNamedValueId) (result WorkspaceNamedValueRefreshSecretOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/refreshSecret", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// WorkspaceNamedValueRefreshSecretThenPoll performs WorkspaceNamedValueRefreshSecret then polls until it's completed +func (c NamedValueClient) WorkspaceNamedValueRefreshSecretThenPoll(ctx context.Context, id WorkspaceNamedValueId) error { + result, err := c.WorkspaceNamedValueRefreshSecret(ctx, id) + if err != nil { + return fmt.Errorf("performing WorkspaceNamedValueRefreshSecret: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after WorkspaceNamedValueRefreshSecret: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_workspacenamedvalueupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_workspacenamedvalueupdate.go new file mode 100644 index 000000000000..2767761302aa --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_workspacenamedvalueupdate.go @@ -0,0 +1,103 @@ +package namedvalue + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type WorkspaceNamedValueUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *NamedValueContract +} + +type WorkspaceNamedValueUpdateOperationOptions struct { + IfMatch *string +} + +func DefaultWorkspaceNamedValueUpdateOperationOptions() WorkspaceNamedValueUpdateOperationOptions { + return WorkspaceNamedValueUpdateOperationOptions{} +} + +func (o WorkspaceNamedValueUpdateOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + if o.IfMatch != nil { + out.Append("If-Match", fmt.Sprintf("%v", *o.IfMatch)) + } + return &out +} + +func (o WorkspaceNamedValueUpdateOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + return &out +} + +func (o WorkspaceNamedValueUpdateOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + + return &out +} + +// WorkspaceNamedValueUpdate ... +func (c NamedValueClient) WorkspaceNamedValueUpdate(ctx context.Context, id WorkspaceNamedValueId, input NamedValueUpdateParameters, options WorkspaceNamedValueUpdateOperationOptions) (result WorkspaceNamedValueUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPatch, + 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 +} + +// WorkspaceNamedValueUpdateThenPoll performs WorkspaceNamedValueUpdate then polls until it's completed +func (c NamedValueClient) WorkspaceNamedValueUpdateThenPoll(ctx context.Context, id WorkspaceNamedValueId, input NamedValueUpdateParameters, options WorkspaceNamedValueUpdateOperationOptions) error { + result, err := c.WorkspaceNamedValueUpdate(ctx, id, input, options) + if err != nil { + return fmt.Errorf("performing WorkspaceNamedValueUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after WorkspaceNamedValueUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/namedvalue/model_keyvaultcontractcreateproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/model_keyvaultcontractcreateproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/namedvalue/model_keyvaultcontractcreateproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/model_keyvaultcontractcreateproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/namedvalue/model_keyvaultcontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/model_keyvaultcontractproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/namedvalue/model_keyvaultcontractproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/model_keyvaultcontractproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/namedvalue/model_keyvaultlastaccessstatuscontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/model_keyvaultlastaccessstatuscontractproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/namedvalue/model_keyvaultlastaccessstatuscontractproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/model_keyvaultlastaccessstatuscontractproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/namedvalue/model_namedvaluecontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/model_namedvaluecontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/namedvalue/model_namedvaluecontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/model_namedvaluecontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/model_namedvaluecontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/model_namedvaluecontractproperties.go new file mode 100644 index 000000000000..ebfa7e5d22fb --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/model_namedvaluecontractproperties.go @@ -0,0 +1,13 @@ +package namedvalue + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NamedValueContractProperties struct { + DisplayName string `json:"displayName"` + KeyVault *KeyVaultContractProperties `json:"keyVault,omitempty"` + ProvisioningState *string `json:"provisioningState,omitempty"` + Secret *bool `json:"secret,omitempty"` + Tags *[]string `json:"tags,omitempty"` + Value *string `json:"value,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/namedvalue/model_namedvaluecreatecontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/model_namedvaluecreatecontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/namedvalue/model_namedvaluecreatecontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/model_namedvaluecreatecontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/namedvalue/model_namedvaluecreatecontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/model_namedvaluecreatecontractproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/namedvalue/model_namedvaluecreatecontractproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/model_namedvaluecreatecontractproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/namedvalue/model_namedvaluesecretcontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/model_namedvaluesecretcontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/namedvalue/model_namedvaluesecretcontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/model_namedvaluesecretcontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/namedvalue/model_namedvalueupdateparameterproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/model_namedvalueupdateparameterproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/namedvalue/model_namedvalueupdateparameterproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/model_namedvalueupdateparameterproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/namedvalue/model_namedvalueupdateparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/model_namedvalueupdateparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/namedvalue/model_namedvalueupdateparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/model_namedvalueupdateparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/namedvalue/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/namedvalue/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/namedvalue/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/version.go similarity index 86% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/namedvalue/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/version.go index 3d6d7a943e78..74dcb5912ce7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/namedvalue/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/version.go @@ -5,7 +5,7 @@ import "fmt" // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2022-08-01" +const defaultApiVersion = "2023-05-01-preview" func userAgent() string { return fmt.Sprintf("hashicorp/go-azure-sdk/namedvalue/%s", defaultApiVersion) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientemail/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail/README.md similarity index 50% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientemail/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail/README.md index 8c520fd24464..8f36b17f1a5f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientemail/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientemail` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail` Documentation -The `notificationrecipientemail` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2022-08-01`). +The `notificationrecipientemail` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2023-05-01-preview`). 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/apimanagement/2022-08-01/notificationrecipientemail" +import "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail" ``` @@ -83,3 +83,68 @@ for _, item := range items { // do something } ``` + + +### Example Usage: `NotificationRecipientEmailClient.WorkspaceNotificationRecipientEmailCheckEntityExists` + +```go +ctx := context.TODO() +id := notificationrecipientemail.NewNotificationRecipientEmailID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "AccountClosedPublisher", "recipientEmailValue") + +read, err := client.WorkspaceNotificationRecipientEmailCheckEntityExists(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `NotificationRecipientEmailClient.WorkspaceNotificationRecipientEmailCreateOrUpdate` + +```go +ctx := context.TODO() +id := notificationrecipientemail.NewNotificationRecipientEmailID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "AccountClosedPublisher", "recipientEmailValue") + +read, err := client.WorkspaceNotificationRecipientEmailCreateOrUpdate(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `NotificationRecipientEmailClient.WorkspaceNotificationRecipientEmailDelete` + +```go +ctx := context.TODO() +id := notificationrecipientemail.NewNotificationRecipientEmailID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "AccountClosedPublisher", "recipientEmailValue") + +read, err := client.WorkspaceNotificationRecipientEmailDelete(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `NotificationRecipientEmailClient.WorkspaceNotificationRecipientEmailListByNotification` + +```go +ctx := context.TODO() +id := notificationrecipientemail.NewNotificationNotificationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "AccountClosedPublisher") + +// alternatively `client.WorkspaceNotificationRecipientEmailListByNotification(ctx, id)` can be used to do batched pagination +items, err := client.WorkspaceNotificationRecipientEmailListByNotificationComplete(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/apimanagement/2022-08-01/notificationrecipientemail/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientemail/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientemail/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientemail/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientemail/id_notification.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail/id_notification.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientemail/id_notification.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail/id_notification.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail/id_notificationnotification.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail/id_notificationnotification.go new file mode 100644 index 000000000000..b5257846bad0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail/id_notificationnotification.go @@ -0,0 +1,156 @@ +package notificationrecipientemail + +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(&NotificationNotificationId{}) +} + +var _ resourceids.ResourceId = &NotificationNotificationId{} + +// NotificationNotificationId is a struct representing the Resource ID for a Notification Notification +type NotificationNotificationId struct { + SubscriptionId string + ResourceGroupName string + ServiceName string + WorkspaceId string + NotificationName NotificationName +} + +// NewNotificationNotificationID returns a new NotificationNotificationId struct +func NewNotificationNotificationID(subscriptionId string, resourceGroupName string, serviceName string, workspaceId string, notificationName NotificationName) NotificationNotificationId { + return NotificationNotificationId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + ServiceName: serviceName, + WorkspaceId: workspaceId, + NotificationName: notificationName, + } +} + +// ParseNotificationNotificationID parses 'input' into a NotificationNotificationId +func ParseNotificationNotificationID(input string) (*NotificationNotificationId, error) { + parser := resourceids.NewParserFromResourceIdType(&NotificationNotificationId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := NotificationNotificationId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseNotificationNotificationIDInsensitively parses 'input' case-insensitively into a NotificationNotificationId +// note: this method should only be used for API response data and not user input +func ParseNotificationNotificationIDInsensitively(input string) (*NotificationNotificationId, error) { + parser := resourceids.NewParserFromResourceIdType(&NotificationNotificationId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := NotificationNotificationId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *NotificationNotificationId) 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.ServiceName, ok = input.Parsed["serviceName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "serviceName", input) + } + + if id.WorkspaceId, ok = input.Parsed["workspaceId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "workspaceId", input) + } + + if v, ok := input.Parsed["notificationName"]; true { + if !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "notificationName", input) + } + + notificationName, err := parseNotificationName(v) + if err != nil { + return fmt.Errorf("parsing %q: %+v", v, err) + } + id.NotificationName = *notificationName + } + + return nil +} + +// ValidateNotificationNotificationID checks that 'input' can be parsed as a Notification Notification ID +func ValidateNotificationNotificationID(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 := ParseNotificationNotificationID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Notification Notification ID +func (id NotificationNotificationId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.ApiManagement/service/%s/workspaces/%s/notifications/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.ServiceName, id.WorkspaceId, string(id.NotificationName)) +} + +// Segments returns a slice of Resource ID Segments which comprise this Notification Notification ID +func (id NotificationNotificationId) 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("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), + resourceids.StaticSegment("staticService", "service", "service"), + resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), + resourceids.UserSpecifiedSegment("workspaceId", "workspaceIdValue"), + resourceids.StaticSegment("staticNotifications", "notifications", "notifications"), + resourceids.ConstantSegment("notificationName", PossibleValuesForNotificationName(), "AccountClosedPublisher"), + } +} + +// String returns a human-readable description of this Notification Notification ID +func (id NotificationNotificationId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Service Name: %q", id.ServiceName), + fmt.Sprintf("Workspace: %q", id.WorkspaceId), + fmt.Sprintf("Notification Name: %q", string(id.NotificationName)), + } + return fmt.Sprintf("Notification Notification (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail/id_notificationrecipientemail.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail/id_notificationrecipientemail.go new file mode 100644 index 000000000000..417bba3220c4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail/id_notificationrecipientemail.go @@ -0,0 +1,165 @@ +package notificationrecipientemail + +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(&NotificationRecipientEmailId{}) +} + +var _ resourceids.ResourceId = &NotificationRecipientEmailId{} + +// NotificationRecipientEmailId is a struct representing the Resource ID for a Notification Recipient Email +type NotificationRecipientEmailId struct { + SubscriptionId string + ResourceGroupName string + ServiceName string + WorkspaceId string + NotificationName NotificationName + RecipientEmailName string +} + +// NewNotificationRecipientEmailID returns a new NotificationRecipientEmailId struct +func NewNotificationRecipientEmailID(subscriptionId string, resourceGroupName string, serviceName string, workspaceId string, notificationName NotificationName, recipientEmailName string) NotificationRecipientEmailId { + return NotificationRecipientEmailId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + ServiceName: serviceName, + WorkspaceId: workspaceId, + NotificationName: notificationName, + RecipientEmailName: recipientEmailName, + } +} + +// ParseNotificationRecipientEmailID parses 'input' into a NotificationRecipientEmailId +func ParseNotificationRecipientEmailID(input string) (*NotificationRecipientEmailId, error) { + parser := resourceids.NewParserFromResourceIdType(&NotificationRecipientEmailId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := NotificationRecipientEmailId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseNotificationRecipientEmailIDInsensitively parses 'input' case-insensitively into a NotificationRecipientEmailId +// note: this method should only be used for API response data and not user input +func ParseNotificationRecipientEmailIDInsensitively(input string) (*NotificationRecipientEmailId, error) { + parser := resourceids.NewParserFromResourceIdType(&NotificationRecipientEmailId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := NotificationRecipientEmailId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *NotificationRecipientEmailId) 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.ServiceName, ok = input.Parsed["serviceName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "serviceName", input) + } + + if id.WorkspaceId, ok = input.Parsed["workspaceId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "workspaceId", input) + } + + if v, ok := input.Parsed["notificationName"]; true { + if !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "notificationName", input) + } + + notificationName, err := parseNotificationName(v) + if err != nil { + return fmt.Errorf("parsing %q: %+v", v, err) + } + id.NotificationName = *notificationName + } + + if id.RecipientEmailName, ok = input.Parsed["recipientEmailName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "recipientEmailName", input) + } + + return nil +} + +// ValidateNotificationRecipientEmailID checks that 'input' can be parsed as a Notification Recipient Email ID +func ValidateNotificationRecipientEmailID(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 := ParseNotificationRecipientEmailID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Notification Recipient Email ID +func (id NotificationRecipientEmailId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.ApiManagement/service/%s/workspaces/%s/notifications/%s/recipientEmails/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.ServiceName, id.WorkspaceId, string(id.NotificationName), id.RecipientEmailName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Notification Recipient Email ID +func (id NotificationRecipientEmailId) 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("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), + resourceids.StaticSegment("staticService", "service", "service"), + resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), + resourceids.UserSpecifiedSegment("workspaceId", "workspaceIdValue"), + resourceids.StaticSegment("staticNotifications", "notifications", "notifications"), + resourceids.ConstantSegment("notificationName", PossibleValuesForNotificationName(), "AccountClosedPublisher"), + resourceids.StaticSegment("staticRecipientEmails", "recipientEmails", "recipientEmails"), + resourceids.UserSpecifiedSegment("recipientEmailName", "recipientEmailValue"), + } +} + +// String returns a human-readable description of this Notification Recipient Email ID +func (id NotificationRecipientEmailId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Service Name: %q", id.ServiceName), + fmt.Sprintf("Workspace: %q", id.WorkspaceId), + fmt.Sprintf("Notification Name: %q", string(id.NotificationName)), + fmt.Sprintf("Recipient Email Name: %q", id.RecipientEmailName), + } + return fmt.Sprintf("Notification Recipient Email (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientemail/id_recipientemail.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail/id_recipientemail.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientemail/id_recipientemail.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail/id_recipientemail.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientemail/method_checkentityexists.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail/method_checkentityexists.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientemail/method_checkentityexists.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail/method_checkentityexists.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientemail/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientemail/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientemail/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientemail/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientemail/method_listbynotification.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail/method_listbynotification.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientemail/method_listbynotification.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail/method_listbynotification.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail/method_workspacenotificationrecipientemailcheckentityexists.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail/method_workspacenotificationrecipientemailcheckentityexists.go new file mode 100644 index 000000000000..7e6b7c04d1a5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail/method_workspacenotificationrecipientemailcheckentityexists.go @@ -0,0 +1,46 @@ +package notificationrecipientemail + +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 WorkspaceNotificationRecipientEmailCheckEntityExistsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// WorkspaceNotificationRecipientEmailCheckEntityExists ... +func (c NotificationRecipientEmailClient) WorkspaceNotificationRecipientEmailCheckEntityExists(ctx context.Context, id NotificationRecipientEmailId) (result WorkspaceNotificationRecipientEmailCheckEntityExistsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusNoContent, + }, + HttpMethod: http.MethodHead, + 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/apimanagement/2023-05-01-preview/notificationrecipientemail/method_workspacenotificationrecipientemailcreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail/method_workspacenotificationrecipientemailcreateorupdate.go new file mode 100644 index 000000000000..a58726e1c6c4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail/method_workspacenotificationrecipientemailcreateorupdate.go @@ -0,0 +1,55 @@ +package notificationrecipientemail + +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 WorkspaceNotificationRecipientEmailCreateOrUpdateOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *RecipientEmailContract +} + +// WorkspaceNotificationRecipientEmailCreateOrUpdate ... +func (c NotificationRecipientEmailClient) WorkspaceNotificationRecipientEmailCreateOrUpdate(ctx context.Context, id NotificationRecipientEmailId) (result WorkspaceNotificationRecipientEmailCreateOrUpdateOperationResponse, 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 + } + + 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 RecipientEmailContract + 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/apimanagement/2023-05-01-preview/notificationrecipientemail/method_workspacenotificationrecipientemaildelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail/method_workspacenotificationrecipientemaildelete.go new file mode 100644 index 000000000000..08489b689017 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail/method_workspacenotificationrecipientemaildelete.go @@ -0,0 +1,47 @@ +package notificationrecipientemail + +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 WorkspaceNotificationRecipientEmailDeleteOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// WorkspaceNotificationRecipientEmailDelete ... +func (c NotificationRecipientEmailClient) WorkspaceNotificationRecipientEmailDelete(ctx context.Context, id NotificationRecipientEmailId) (result WorkspaceNotificationRecipientEmailDeleteOperationResponse, 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/apimanagement/2023-05-01-preview/notificationrecipientemail/method_workspacenotificationrecipientemaillistbynotification.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail/method_workspacenotificationrecipientemaillistbynotification.go new file mode 100644 index 000000000000..42575e8657e7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail/method_workspacenotificationrecipientemaillistbynotification.go @@ -0,0 +1,105 @@ +package notificationrecipientemail + +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 WorkspaceNotificationRecipientEmailListByNotificationOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]RecipientEmailContract +} + +type WorkspaceNotificationRecipientEmailListByNotificationCompleteResult struct { + LatestHttpResponse *http.Response + Items []RecipientEmailContract +} + +type WorkspaceNotificationRecipientEmailListByNotificationCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkspaceNotificationRecipientEmailListByNotificationCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// WorkspaceNotificationRecipientEmailListByNotification ... +func (c NotificationRecipientEmailClient) WorkspaceNotificationRecipientEmailListByNotification(ctx context.Context, id NotificationNotificationId) (result WorkspaceNotificationRecipientEmailListByNotificationOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &WorkspaceNotificationRecipientEmailListByNotificationCustomPager{}, + Path: fmt.Sprintf("%s/recipientEmails", 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 *[]RecipientEmailContract `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// WorkspaceNotificationRecipientEmailListByNotificationComplete retrieves all the results into a single object +func (c NotificationRecipientEmailClient) WorkspaceNotificationRecipientEmailListByNotificationComplete(ctx context.Context, id NotificationNotificationId) (WorkspaceNotificationRecipientEmailListByNotificationCompleteResult, error) { + return c.WorkspaceNotificationRecipientEmailListByNotificationCompleteMatchingPredicate(ctx, id, RecipientEmailContractOperationPredicate{}) +} + +// WorkspaceNotificationRecipientEmailListByNotificationCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c NotificationRecipientEmailClient) WorkspaceNotificationRecipientEmailListByNotificationCompleteMatchingPredicate(ctx context.Context, id NotificationNotificationId, predicate RecipientEmailContractOperationPredicate) (result WorkspaceNotificationRecipientEmailListByNotificationCompleteResult, err error) { + items := make([]RecipientEmailContract, 0) + + resp, err := c.WorkspaceNotificationRecipientEmailListByNotification(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 = WorkspaceNotificationRecipientEmailListByNotificationCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientemail/model_recipientemailcontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail/model_recipientemailcontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientemail/model_recipientemailcontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail/model_recipientemailcontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientemail/model_recipientemailcontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail/model_recipientemailcontractproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientemail/model_recipientemailcontractproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail/model_recipientemailcontractproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientemail/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientemail/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientemail/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail/version.go similarity index 87% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientemail/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail/version.go index db66592fabb1..957e6030ca85 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientemail/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail/version.go @@ -5,7 +5,7 @@ import "fmt" // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2022-08-01" +const defaultApiVersion = "2023-05-01-preview" func userAgent() string { return fmt.Sprintf("hashicorp/go-azure-sdk/notificationrecipientemail/%s", defaultApiVersion) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientuser/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser/README.md similarity index 50% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientuser/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser/README.md index 4a929ac0a403..33a143446179 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientuser/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientuser` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser` Documentation -The `notificationrecipientuser` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2022-08-01`). +The `notificationrecipientuser` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2023-05-01-preview`). 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/apimanagement/2022-08-01/notificationrecipientuser" +import "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser" ``` @@ -83,3 +83,68 @@ for _, item := range items { // do something } ``` + + +### Example Usage: `NotificationRecipientUserClient.WorkspaceNotificationRecipientUserCheckEntityExists` + +```go +ctx := context.TODO() +id := notificationrecipientuser.NewNotificationRecipientUserID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "AccountClosedPublisher", "userIdValue") + +read, err := client.WorkspaceNotificationRecipientUserCheckEntityExists(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `NotificationRecipientUserClient.WorkspaceNotificationRecipientUserCreateOrUpdate` + +```go +ctx := context.TODO() +id := notificationrecipientuser.NewNotificationRecipientUserID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "AccountClosedPublisher", "userIdValue") + +read, err := client.WorkspaceNotificationRecipientUserCreateOrUpdate(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `NotificationRecipientUserClient.WorkspaceNotificationRecipientUserDelete` + +```go +ctx := context.TODO() +id := notificationrecipientuser.NewNotificationRecipientUserID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "AccountClosedPublisher", "userIdValue") + +read, err := client.WorkspaceNotificationRecipientUserDelete(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `NotificationRecipientUserClient.WorkspaceNotificationRecipientUserListByNotification` + +```go +ctx := context.TODO() +id := notificationrecipientuser.NewNotificationNotificationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "AccountClosedPublisher") + +// alternatively `client.WorkspaceNotificationRecipientUserListByNotification(ctx, id)` can be used to do batched pagination +items, err := client.WorkspaceNotificationRecipientUserListByNotificationComplete(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/apimanagement/2022-08-01/notificationrecipientuser/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientuser/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientuser/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientuser/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientuser/id_notification.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser/id_notification.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientuser/id_notification.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser/id_notification.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser/id_notificationnotification.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser/id_notificationnotification.go new file mode 100644 index 000000000000..86345fd00476 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser/id_notificationnotification.go @@ -0,0 +1,156 @@ +package notificationrecipientuser + +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(&NotificationNotificationId{}) +} + +var _ resourceids.ResourceId = &NotificationNotificationId{} + +// NotificationNotificationId is a struct representing the Resource ID for a Notification Notification +type NotificationNotificationId struct { + SubscriptionId string + ResourceGroupName string + ServiceName string + WorkspaceId string + NotificationName NotificationName +} + +// NewNotificationNotificationID returns a new NotificationNotificationId struct +func NewNotificationNotificationID(subscriptionId string, resourceGroupName string, serviceName string, workspaceId string, notificationName NotificationName) NotificationNotificationId { + return NotificationNotificationId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + ServiceName: serviceName, + WorkspaceId: workspaceId, + NotificationName: notificationName, + } +} + +// ParseNotificationNotificationID parses 'input' into a NotificationNotificationId +func ParseNotificationNotificationID(input string) (*NotificationNotificationId, error) { + parser := resourceids.NewParserFromResourceIdType(&NotificationNotificationId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := NotificationNotificationId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseNotificationNotificationIDInsensitively parses 'input' case-insensitively into a NotificationNotificationId +// note: this method should only be used for API response data and not user input +func ParseNotificationNotificationIDInsensitively(input string) (*NotificationNotificationId, error) { + parser := resourceids.NewParserFromResourceIdType(&NotificationNotificationId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := NotificationNotificationId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *NotificationNotificationId) 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.ServiceName, ok = input.Parsed["serviceName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "serviceName", input) + } + + if id.WorkspaceId, ok = input.Parsed["workspaceId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "workspaceId", input) + } + + if v, ok := input.Parsed["notificationName"]; true { + if !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "notificationName", input) + } + + notificationName, err := parseNotificationName(v) + if err != nil { + return fmt.Errorf("parsing %q: %+v", v, err) + } + id.NotificationName = *notificationName + } + + return nil +} + +// ValidateNotificationNotificationID checks that 'input' can be parsed as a Notification Notification ID +func ValidateNotificationNotificationID(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 := ParseNotificationNotificationID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Notification Notification ID +func (id NotificationNotificationId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.ApiManagement/service/%s/workspaces/%s/notifications/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.ServiceName, id.WorkspaceId, string(id.NotificationName)) +} + +// Segments returns a slice of Resource ID Segments which comprise this Notification Notification ID +func (id NotificationNotificationId) 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("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), + resourceids.StaticSegment("staticService", "service", "service"), + resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), + resourceids.UserSpecifiedSegment("workspaceId", "workspaceIdValue"), + resourceids.StaticSegment("staticNotifications", "notifications", "notifications"), + resourceids.ConstantSegment("notificationName", PossibleValuesForNotificationName(), "AccountClosedPublisher"), + } +} + +// String returns a human-readable description of this Notification Notification ID +func (id NotificationNotificationId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Service Name: %q", id.ServiceName), + fmt.Sprintf("Workspace: %q", id.WorkspaceId), + fmt.Sprintf("Notification Name: %q", string(id.NotificationName)), + } + return fmt.Sprintf("Notification Notification (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser/id_notificationrecipientuser.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser/id_notificationrecipientuser.go new file mode 100644 index 000000000000..abd829fc50ba --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser/id_notificationrecipientuser.go @@ -0,0 +1,165 @@ +package notificationrecipientuser + +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(&NotificationRecipientUserId{}) +} + +var _ resourceids.ResourceId = &NotificationRecipientUserId{} + +// NotificationRecipientUserId is a struct representing the Resource ID for a Notification Recipient User +type NotificationRecipientUserId struct { + SubscriptionId string + ResourceGroupName string + ServiceName string + WorkspaceId string + NotificationName NotificationName + UserId string +} + +// NewNotificationRecipientUserID returns a new NotificationRecipientUserId struct +func NewNotificationRecipientUserID(subscriptionId string, resourceGroupName string, serviceName string, workspaceId string, notificationName NotificationName, userId string) NotificationRecipientUserId { + return NotificationRecipientUserId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + ServiceName: serviceName, + WorkspaceId: workspaceId, + NotificationName: notificationName, + UserId: userId, + } +} + +// ParseNotificationRecipientUserID parses 'input' into a NotificationRecipientUserId +func ParseNotificationRecipientUserID(input string) (*NotificationRecipientUserId, error) { + parser := resourceids.NewParserFromResourceIdType(&NotificationRecipientUserId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := NotificationRecipientUserId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseNotificationRecipientUserIDInsensitively parses 'input' case-insensitively into a NotificationRecipientUserId +// note: this method should only be used for API response data and not user input +func ParseNotificationRecipientUserIDInsensitively(input string) (*NotificationRecipientUserId, error) { + parser := resourceids.NewParserFromResourceIdType(&NotificationRecipientUserId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := NotificationRecipientUserId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *NotificationRecipientUserId) 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.ServiceName, ok = input.Parsed["serviceName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "serviceName", input) + } + + if id.WorkspaceId, ok = input.Parsed["workspaceId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "workspaceId", input) + } + + if v, ok := input.Parsed["notificationName"]; true { + if !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "notificationName", input) + } + + notificationName, err := parseNotificationName(v) + if err != nil { + return fmt.Errorf("parsing %q: %+v", v, err) + } + id.NotificationName = *notificationName + } + + if id.UserId, ok = input.Parsed["userId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "userId", input) + } + + return nil +} + +// ValidateNotificationRecipientUserID checks that 'input' can be parsed as a Notification Recipient User ID +func ValidateNotificationRecipientUserID(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 := ParseNotificationRecipientUserID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Notification Recipient User ID +func (id NotificationRecipientUserId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.ApiManagement/service/%s/workspaces/%s/notifications/%s/recipientUsers/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.ServiceName, id.WorkspaceId, string(id.NotificationName), id.UserId) +} + +// Segments returns a slice of Resource ID Segments which comprise this Notification Recipient User ID +func (id NotificationRecipientUserId) 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("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), + resourceids.StaticSegment("staticService", "service", "service"), + resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), + resourceids.UserSpecifiedSegment("workspaceId", "workspaceIdValue"), + resourceids.StaticSegment("staticNotifications", "notifications", "notifications"), + resourceids.ConstantSegment("notificationName", PossibleValuesForNotificationName(), "AccountClosedPublisher"), + resourceids.StaticSegment("staticRecipientUsers", "recipientUsers", "recipientUsers"), + resourceids.UserSpecifiedSegment("userId", "userIdValue"), + } +} + +// String returns a human-readable description of this Notification Recipient User ID +func (id NotificationRecipientUserId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Service Name: %q", id.ServiceName), + fmt.Sprintf("Workspace: %q", id.WorkspaceId), + fmt.Sprintf("Notification Name: %q", string(id.NotificationName)), + fmt.Sprintf("User: %q", id.UserId), + } + return fmt.Sprintf("Notification Recipient User (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientuser/id_recipientuser.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser/id_recipientuser.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientuser/id_recipientuser.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser/id_recipientuser.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientuser/method_checkentityexists.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser/method_checkentityexists.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientuser/method_checkentityexists.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser/method_checkentityexists.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientuser/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientuser/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientuser/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientuser/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientuser/method_listbynotification.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser/method_listbynotification.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientuser/method_listbynotification.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser/method_listbynotification.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser/method_workspacenotificationrecipientusercheckentityexists.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser/method_workspacenotificationrecipientusercheckentityexists.go new file mode 100644 index 000000000000..c97509fc283e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser/method_workspacenotificationrecipientusercheckentityexists.go @@ -0,0 +1,46 @@ +package notificationrecipientuser + +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 WorkspaceNotificationRecipientUserCheckEntityExistsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// WorkspaceNotificationRecipientUserCheckEntityExists ... +func (c NotificationRecipientUserClient) WorkspaceNotificationRecipientUserCheckEntityExists(ctx context.Context, id NotificationRecipientUserId) (result WorkspaceNotificationRecipientUserCheckEntityExistsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusNoContent, + }, + HttpMethod: http.MethodHead, + 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/apimanagement/2023-05-01-preview/notificationrecipientuser/method_workspacenotificationrecipientusercreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser/method_workspacenotificationrecipientusercreateorupdate.go new file mode 100644 index 000000000000..ee9639349769 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser/method_workspacenotificationrecipientusercreateorupdate.go @@ -0,0 +1,55 @@ +package notificationrecipientuser + +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 WorkspaceNotificationRecipientUserCreateOrUpdateOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *RecipientUserContract +} + +// WorkspaceNotificationRecipientUserCreateOrUpdate ... +func (c NotificationRecipientUserClient) WorkspaceNotificationRecipientUserCreateOrUpdate(ctx context.Context, id NotificationRecipientUserId) (result WorkspaceNotificationRecipientUserCreateOrUpdateOperationResponse, 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 + } + + 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 RecipientUserContract + 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/apimanagement/2023-05-01-preview/notificationrecipientuser/method_workspacenotificationrecipientuserdelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser/method_workspacenotificationrecipientuserdelete.go new file mode 100644 index 000000000000..9faf1e4e7615 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser/method_workspacenotificationrecipientuserdelete.go @@ -0,0 +1,47 @@ +package notificationrecipientuser + +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 WorkspaceNotificationRecipientUserDeleteOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// WorkspaceNotificationRecipientUserDelete ... +func (c NotificationRecipientUserClient) WorkspaceNotificationRecipientUserDelete(ctx context.Context, id NotificationRecipientUserId) (result WorkspaceNotificationRecipientUserDeleteOperationResponse, 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/apimanagement/2023-05-01-preview/notificationrecipientuser/method_workspacenotificationrecipientuserlistbynotification.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser/method_workspacenotificationrecipientuserlistbynotification.go new file mode 100644 index 000000000000..0665d50ca9cc --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser/method_workspacenotificationrecipientuserlistbynotification.go @@ -0,0 +1,105 @@ +package notificationrecipientuser + +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 WorkspaceNotificationRecipientUserListByNotificationOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]RecipientUserContract +} + +type WorkspaceNotificationRecipientUserListByNotificationCompleteResult struct { + LatestHttpResponse *http.Response + Items []RecipientUserContract +} + +type WorkspaceNotificationRecipientUserListByNotificationCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkspaceNotificationRecipientUserListByNotificationCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// WorkspaceNotificationRecipientUserListByNotification ... +func (c NotificationRecipientUserClient) WorkspaceNotificationRecipientUserListByNotification(ctx context.Context, id NotificationNotificationId) (result WorkspaceNotificationRecipientUserListByNotificationOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &WorkspaceNotificationRecipientUserListByNotificationCustomPager{}, + Path: fmt.Sprintf("%s/recipientUsers", 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 *[]RecipientUserContract `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// WorkspaceNotificationRecipientUserListByNotificationComplete retrieves all the results into a single object +func (c NotificationRecipientUserClient) WorkspaceNotificationRecipientUserListByNotificationComplete(ctx context.Context, id NotificationNotificationId) (WorkspaceNotificationRecipientUserListByNotificationCompleteResult, error) { + return c.WorkspaceNotificationRecipientUserListByNotificationCompleteMatchingPredicate(ctx, id, RecipientUserContractOperationPredicate{}) +} + +// WorkspaceNotificationRecipientUserListByNotificationCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c NotificationRecipientUserClient) WorkspaceNotificationRecipientUserListByNotificationCompleteMatchingPredicate(ctx context.Context, id NotificationNotificationId, predicate RecipientUserContractOperationPredicate) (result WorkspaceNotificationRecipientUserListByNotificationCompleteResult, err error) { + items := make([]RecipientUserContract, 0) + + resp, err := c.WorkspaceNotificationRecipientUserListByNotification(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 = WorkspaceNotificationRecipientUserListByNotificationCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientuser/model_recipientusercontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser/model_recipientusercontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientuser/model_recipientusercontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser/model_recipientusercontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientuser/model_recipientuserscontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser/model_recipientuserscontractproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientuser/model_recipientuserscontractproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser/model_recipientuserscontractproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientuser/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientuser/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientuser/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser/version.go similarity index 87% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientuser/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser/version.go index 58f6ab4a4751..c10e63e1622e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientuser/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser/version.go @@ -5,7 +5,7 @@ import "fmt" // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2022-08-01" +const defaultApiVersion = "2023-05-01-preview" func userAgent() string { return fmt.Sprintf("hashicorp/go-azure-sdk/notificationrecipientuser/%s", defaultApiVersion) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/openidconnectprovider/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/openidconnectprovider/README.md similarity index 96% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/openidconnectprovider/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/openidconnectprovider/README.md index 3e3b0f0de8d2..d67aa4e9dac6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/openidconnectprovider/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/openidconnectprovider/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/openidconnectprovider` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/openidconnectprovider` Documentation -The `openidconnectprovider` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2022-08-01`). +The `openidconnectprovider` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2023-05-01-preview`). 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/apimanagement/2022-08-01/openidconnectprovider" +import "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/openidconnectprovider" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/openidconnectprovider/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/openidconnectprovider/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/openidconnectprovider/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/openidconnectprovider/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/openidconnectprovider/id_openidconnectprovider.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/openidconnectprovider/id_openidconnectprovider.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/openidconnectprovider/id_openidconnectprovider.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/openidconnectprovider/id_openidconnectprovider.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/openidconnectprovider/id_service.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/openidconnectprovider/id_service.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/openidconnectprovider/id_service.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/openidconnectprovider/id_service.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/openidconnectprovider/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/openidconnectprovider/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/openidconnectprovider/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/openidconnectprovider/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/openidconnectprovider/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/openidconnectprovider/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/openidconnectprovider/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/openidconnectprovider/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/openidconnectprovider/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/openidconnectprovider/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/openidconnectprovider/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/openidconnectprovider/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/openidconnectprovider/method_getentitytag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/openidconnectprovider/method_getentitytag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/openidconnectprovider/method_getentitytag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/openidconnectprovider/method_getentitytag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/openidconnectprovider/method_listbyservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/openidconnectprovider/method_listbyservice.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/openidconnectprovider/method_listbyservice.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/openidconnectprovider/method_listbyservice.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/openidconnectprovider/method_listsecrets.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/openidconnectprovider/method_listsecrets.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/openidconnectprovider/method_listsecrets.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/openidconnectprovider/method_listsecrets.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/openidconnectprovider/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/openidconnectprovider/method_update.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/openidconnectprovider/method_update.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/openidconnectprovider/method_update.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/openidconnectprovider/model_clientsecretcontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/openidconnectprovider/model_clientsecretcontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/openidconnectprovider/model_clientsecretcontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/openidconnectprovider/model_clientsecretcontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/openidconnectprovider/model_openidconnectprovidercontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/openidconnectprovider/model_openidconnectprovidercontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/openidconnectprovider/model_openidconnectprovidercontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/openidconnectprovider/model_openidconnectprovidercontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/openidconnectprovider/model_openidconnectprovidercontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/openidconnectprovider/model_openidconnectprovidercontractproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/openidconnectprovider/model_openidconnectprovidercontractproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/openidconnectprovider/model_openidconnectprovidercontractproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/openidconnectprovider/model_openidconnectproviderupdatecontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/openidconnectprovider/model_openidconnectproviderupdatecontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/openidconnectprovider/model_openidconnectproviderupdatecontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/openidconnectprovider/model_openidconnectproviderupdatecontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/openidconnectprovider/model_openidconnectproviderupdatecontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/openidconnectprovider/model_openidconnectproviderupdatecontractproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/openidconnectprovider/model_openidconnectproviderupdatecontractproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/openidconnectprovider/model_openidconnectproviderupdatecontractproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/openidconnectprovider/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/openidconnectprovider/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/openidconnectprovider/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/openidconnectprovider/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/openidconnectprovider/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/openidconnectprovider/version.go similarity index 87% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/openidconnectprovider/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/openidconnectprovider/version.go index 186262c4c638..594c598873a9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/openidconnectprovider/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/openidconnectprovider/version.go @@ -5,7 +5,7 @@ import "fmt" // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2022-08-01" +const defaultApiVersion = "2023-05-01-preview" func userAgent() string { return fmt.Sprintf("hashicorp/go-azure-sdk/openidconnectprovider/%s", defaultApiVersion) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policy/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policy/README.md similarity index 94% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policy/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policy/README.md index 1920cd0a6d7d..1da3f6604c37 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policy/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policy/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policy` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policy` Documentation -The `policy` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2022-08-01`). +The `policy` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2023-05-01-preview`). 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/apimanagement/2022-08-01/policy" +import "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policy" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policy/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policy/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policy/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policy/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policy/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policy/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policy/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policy/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policy/id_service.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policy/id_service.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policy/id_service.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policy/id_service.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policy/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policy/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policy/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policy/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policy/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policy/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policy/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policy/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policy/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policy/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policy/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policy/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policy/method_getentitytag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policy/method_getentitytag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policy/method_getentitytag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policy/method_getentitytag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policy/method_listbyservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policy/method_listbyservice.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policy/method_listbyservice.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policy/method_listbyservice.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policy/model_policycontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policy/model_policycontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policy/model_policycontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policy/model_policycontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policy/model_policycontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policy/model_policycontractproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policy/model_policycontractproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policy/model_policycontractproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policy/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policy/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policy/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policy/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policy/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policy/version.go similarity index 86% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policy/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policy/version.go index 4455d39bfa91..4979a3c9ddda 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policy/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policy/version.go @@ -5,7 +5,7 @@ import "fmt" // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2022-08-01" +const defaultApiVersion = "2023-05-01-preview" func userAgent() string { return fmt.Sprintf("hashicorp/go-azure-sdk/policy/%s", defaultApiVersion) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/README.md new file mode 100644 index 000000000000..fc80f2b30601 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/README.md @@ -0,0 +1,218 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment` Documentation + +The `policyfragment` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2023-05-01-preview`). + +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/apimanagement/2023-05-01-preview/policyfragment" +``` + + +### Client Initialization + +```go +client := policyfragment.NewPolicyFragmentClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `PolicyFragmentClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := policyfragment.NewPolicyFragmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "policyFragmentValue") + +payload := policyfragment.PolicyFragmentContract{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload, policyfragment.DefaultCreateOrUpdateOperationOptions()); err != nil { + // handle the error +} +``` + + +### Example Usage: `PolicyFragmentClient.Delete` + +```go +ctx := context.TODO() +id := policyfragment.NewPolicyFragmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "policyFragmentValue") + +read, err := client.Delete(ctx, id, policyfragment.DefaultDeleteOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `PolicyFragmentClient.Get` + +```go +ctx := context.TODO() +id := policyfragment.NewPolicyFragmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "policyFragmentValue") + +read, err := client.Get(ctx, id, policyfragment.DefaultGetOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `PolicyFragmentClient.GetEntityTag` + +```go +ctx := context.TODO() +id := policyfragment.NewPolicyFragmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "policyFragmentValue") + +read, err := client.GetEntityTag(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `PolicyFragmentClient.ListByService` + +```go +ctx := context.TODO() +id := policyfragment.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue") + +// alternatively `client.ListByService(ctx, id, policyfragment.DefaultListByServiceOperationOptions())` can be used to do batched pagination +items, err := client.ListByServiceComplete(ctx, id, policyfragment.DefaultListByServiceOperationOptions()) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `PolicyFragmentClient.ListReferences` + +```go +ctx := context.TODO() +id := policyfragment.NewPolicyFragmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "policyFragmentValue") + +// alternatively `client.ListReferences(ctx, id, policyfragment.DefaultListReferencesOperationOptions())` can be used to do batched pagination +items, err := client.ListReferencesComplete(ctx, id, policyfragment.DefaultListReferencesOperationOptions()) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `PolicyFragmentClient.WorkspacePolicyFragmentCreateOrUpdate` + +```go +ctx := context.TODO() +id := policyfragment.NewWorkspacePolicyFragmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "policyFragmentValue") + +payload := policyfragment.PolicyFragmentContract{ + // ... +} + + +if err := client.WorkspacePolicyFragmentCreateOrUpdateThenPoll(ctx, id, payload, policyfragment.DefaultWorkspacePolicyFragmentCreateOrUpdateOperationOptions()); err != nil { + // handle the error +} +``` + + +### Example Usage: `PolicyFragmentClient.WorkspacePolicyFragmentDelete` + +```go +ctx := context.TODO() +id := policyfragment.NewWorkspacePolicyFragmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "policyFragmentValue") + +read, err := client.WorkspacePolicyFragmentDelete(ctx, id, policyfragment.DefaultWorkspacePolicyFragmentDeleteOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `PolicyFragmentClient.WorkspacePolicyFragmentGet` + +```go +ctx := context.TODO() +id := policyfragment.NewWorkspacePolicyFragmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "policyFragmentValue") + +read, err := client.WorkspacePolicyFragmentGet(ctx, id, policyfragment.DefaultWorkspacePolicyFragmentGetOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `PolicyFragmentClient.WorkspacePolicyFragmentGetEntityTag` + +```go +ctx := context.TODO() +id := policyfragment.NewWorkspacePolicyFragmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "policyFragmentValue") + +read, err := client.WorkspacePolicyFragmentGetEntityTag(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `PolicyFragmentClient.WorkspacePolicyFragmentListByService` + +```go +ctx := context.TODO() +id := policyfragment.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue") + +// alternatively `client.WorkspacePolicyFragmentListByService(ctx, id, policyfragment.DefaultWorkspacePolicyFragmentListByServiceOperationOptions())` can be used to do batched pagination +items, err := client.WorkspacePolicyFragmentListByServiceComplete(ctx, id, policyfragment.DefaultWorkspacePolicyFragmentListByServiceOperationOptions()) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `PolicyFragmentClient.WorkspacePolicyFragmentListReferences` + +```go +ctx := context.TODO() +id := policyfragment.NewWorkspacePolicyFragmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "policyFragmentValue") + +// alternatively `client.WorkspacePolicyFragmentListReferences(ctx, id, policyfragment.DefaultWorkspacePolicyFragmentListReferencesOperationOptions())` can be used to do batched pagination +items, err := client.WorkspacePolicyFragmentListReferencesComplete(ctx, id, policyfragment.DefaultWorkspacePolicyFragmentListReferencesOperationOptions()) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policyfragment/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policyfragment/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policyfragment/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policyfragment/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policyfragment/id_policyfragment.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/id_policyfragment.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policyfragment/id_policyfragment.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/id_policyfragment.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policyfragment/id_service.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/id_service.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policyfragment/id_service.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/id_service.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/id_workspace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/id_workspace.go new file mode 100644 index 000000000000..334ecf5425ce --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/id_workspace.go @@ -0,0 +1,139 @@ +package policyfragment + +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(&WorkspaceId{}) +} + +var _ resourceids.ResourceId = &WorkspaceId{} + +// WorkspaceId is a struct representing the Resource ID for a Workspace +type WorkspaceId struct { + SubscriptionId string + ResourceGroupName string + ServiceName string + WorkspaceId string +} + +// NewWorkspaceID returns a new WorkspaceId struct +func NewWorkspaceID(subscriptionId string, resourceGroupName string, serviceName string, workspaceId string) WorkspaceId { + return WorkspaceId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + ServiceName: serviceName, + WorkspaceId: workspaceId, + } +} + +// ParseWorkspaceID parses 'input' into a WorkspaceId +func ParseWorkspaceID(input string) (*WorkspaceId, error) { + parser := resourceids.NewParserFromResourceIdType(&WorkspaceId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := WorkspaceId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseWorkspaceIDInsensitively parses 'input' case-insensitively into a WorkspaceId +// note: this method should only be used for API response data and not user input +func ParseWorkspaceIDInsensitively(input string) (*WorkspaceId, error) { + parser := resourceids.NewParserFromResourceIdType(&WorkspaceId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := WorkspaceId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *WorkspaceId) 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.ServiceName, ok = input.Parsed["serviceName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "serviceName", input) + } + + if id.WorkspaceId, ok = input.Parsed["workspaceId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "workspaceId", input) + } + + return nil +} + +// ValidateWorkspaceID checks that 'input' can be parsed as a Workspace ID +func ValidateWorkspaceID(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 := ParseWorkspaceID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Workspace ID +func (id WorkspaceId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.ApiManagement/service/%s/workspaces/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.ServiceName, id.WorkspaceId) +} + +// Segments returns a slice of Resource ID Segments which comprise this Workspace ID +func (id WorkspaceId) 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("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), + resourceids.StaticSegment("staticService", "service", "service"), + resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), + resourceids.UserSpecifiedSegment("workspaceId", "workspaceIdValue"), + } +} + +// String returns a human-readable description of this Workspace ID +func (id WorkspaceId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Service Name: %q", id.ServiceName), + fmt.Sprintf("Workspace: %q", id.WorkspaceId), + } + return fmt.Sprintf("Workspace (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/id_workspacepolicyfragment.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/id_workspacepolicyfragment.go new file mode 100644 index 000000000000..eed247a5b17e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/id_workspacepolicyfragment.go @@ -0,0 +1,148 @@ +package policyfragment + +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(&WorkspacePolicyFragmentId{}) +} + +var _ resourceids.ResourceId = &WorkspacePolicyFragmentId{} + +// WorkspacePolicyFragmentId is a struct representing the Resource ID for a Workspace Policy Fragment +type WorkspacePolicyFragmentId struct { + SubscriptionId string + ResourceGroupName string + ServiceName string + WorkspaceId string + PolicyFragmentName string +} + +// NewWorkspacePolicyFragmentID returns a new WorkspacePolicyFragmentId struct +func NewWorkspacePolicyFragmentID(subscriptionId string, resourceGroupName string, serviceName string, workspaceId string, policyFragmentName string) WorkspacePolicyFragmentId { + return WorkspacePolicyFragmentId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + ServiceName: serviceName, + WorkspaceId: workspaceId, + PolicyFragmentName: policyFragmentName, + } +} + +// ParseWorkspacePolicyFragmentID parses 'input' into a WorkspacePolicyFragmentId +func ParseWorkspacePolicyFragmentID(input string) (*WorkspacePolicyFragmentId, error) { + parser := resourceids.NewParserFromResourceIdType(&WorkspacePolicyFragmentId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := WorkspacePolicyFragmentId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseWorkspacePolicyFragmentIDInsensitively parses 'input' case-insensitively into a WorkspacePolicyFragmentId +// note: this method should only be used for API response data and not user input +func ParseWorkspacePolicyFragmentIDInsensitively(input string) (*WorkspacePolicyFragmentId, error) { + parser := resourceids.NewParserFromResourceIdType(&WorkspacePolicyFragmentId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := WorkspacePolicyFragmentId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *WorkspacePolicyFragmentId) 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.ServiceName, ok = input.Parsed["serviceName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "serviceName", input) + } + + if id.WorkspaceId, ok = input.Parsed["workspaceId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "workspaceId", input) + } + + if id.PolicyFragmentName, ok = input.Parsed["policyFragmentName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "policyFragmentName", input) + } + + return nil +} + +// ValidateWorkspacePolicyFragmentID checks that 'input' can be parsed as a Workspace Policy Fragment ID +func ValidateWorkspacePolicyFragmentID(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 := ParseWorkspacePolicyFragmentID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Workspace Policy Fragment ID +func (id WorkspacePolicyFragmentId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.ApiManagement/service/%s/workspaces/%s/policyFragments/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.ServiceName, id.WorkspaceId, id.PolicyFragmentName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Workspace Policy Fragment ID +func (id WorkspacePolicyFragmentId) 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("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), + resourceids.StaticSegment("staticService", "service", "service"), + resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), + resourceids.UserSpecifiedSegment("workspaceId", "workspaceIdValue"), + resourceids.StaticSegment("staticPolicyFragments", "policyFragments", "policyFragments"), + resourceids.UserSpecifiedSegment("policyFragmentName", "policyFragmentValue"), + } +} + +// String returns a human-readable description of this Workspace Policy Fragment ID +func (id WorkspacePolicyFragmentId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Service Name: %q", id.ServiceName), + fmt.Sprintf("Workspace: %q", id.WorkspaceId), + fmt.Sprintf("Policy Fragment Name: %q", id.PolicyFragmentName), + } + return fmt.Sprintf("Workspace Policy Fragment (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policyfragment/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/method_createorupdate.go similarity index 99% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policyfragment/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/method_createorupdate.go index 03cb7db852a2..926a279b604f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policyfragment/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/method_createorupdate.go @@ -53,7 +53,6 @@ func (c PolicyFragmentClient) CreateOrUpdate(ctx context.Context, id PolicyFragm opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ - http.StatusAccepted, http.StatusCreated, http.StatusOK, }, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policyfragment/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policyfragment/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policyfragment/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policyfragment/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policyfragment/method_getentitytag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/method_getentitytag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policyfragment/method_getentitytag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/method_getentitytag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policyfragment/method_listbyservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/method_listbyservice.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policyfragment/method_listbyservice.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/method_listbyservice.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policyfragment/method_listreferences.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/method_listreferences.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policyfragment/method_listreferences.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/method_listreferences.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/method_workspacepolicyfragmentcreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/method_workspacepolicyfragmentcreateorupdate.go new file mode 100644 index 000000000000..07c7352e49dd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/method_workspacepolicyfragmentcreateorupdate.go @@ -0,0 +1,103 @@ +package policyfragment + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type WorkspacePolicyFragmentCreateOrUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *PolicyFragmentContract +} + +type WorkspacePolicyFragmentCreateOrUpdateOperationOptions struct { + IfMatch *string +} + +func DefaultWorkspacePolicyFragmentCreateOrUpdateOperationOptions() WorkspacePolicyFragmentCreateOrUpdateOperationOptions { + return WorkspacePolicyFragmentCreateOrUpdateOperationOptions{} +} + +func (o WorkspacePolicyFragmentCreateOrUpdateOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + if o.IfMatch != nil { + out.Append("If-Match", fmt.Sprintf("%v", *o.IfMatch)) + } + return &out +} + +func (o WorkspacePolicyFragmentCreateOrUpdateOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + return &out +} + +func (o WorkspacePolicyFragmentCreateOrUpdateOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + + return &out +} + +// WorkspacePolicyFragmentCreateOrUpdate ... +func (c PolicyFragmentClient) WorkspacePolicyFragmentCreateOrUpdate(ctx context.Context, id WorkspacePolicyFragmentId, input PolicyFragmentContract, options WorkspacePolicyFragmentCreateOrUpdateOperationOptions) (result WorkspacePolicyFragmentCreateOrUpdateOperationResponse, 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 +} + +// WorkspacePolicyFragmentCreateOrUpdateThenPoll performs WorkspacePolicyFragmentCreateOrUpdate then polls until it's completed +func (c PolicyFragmentClient) WorkspacePolicyFragmentCreateOrUpdateThenPoll(ctx context.Context, id WorkspacePolicyFragmentId, input PolicyFragmentContract, options WorkspacePolicyFragmentCreateOrUpdateOperationOptions) error { + result, err := c.WorkspacePolicyFragmentCreateOrUpdate(ctx, id, input, options) + if err != nil { + return fmt.Errorf("performing WorkspacePolicyFragmentCreateOrUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after WorkspacePolicyFragmentCreateOrUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/method_workspacepolicyfragmentdelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/method_workspacepolicyfragmentdelete.go new file mode 100644 index 000000000000..3c175e499a5a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/method_workspacepolicyfragmentdelete.go @@ -0,0 +1,76 @@ +package policyfragment + +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 WorkspacePolicyFragmentDeleteOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +type WorkspacePolicyFragmentDeleteOperationOptions struct { + IfMatch *string +} + +func DefaultWorkspacePolicyFragmentDeleteOperationOptions() WorkspacePolicyFragmentDeleteOperationOptions { + return WorkspacePolicyFragmentDeleteOperationOptions{} +} + +func (o WorkspacePolicyFragmentDeleteOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + if o.IfMatch != nil { + out.Append("If-Match", fmt.Sprintf("%v", *o.IfMatch)) + } + return &out +} + +func (o WorkspacePolicyFragmentDeleteOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + return &out +} + +func (o WorkspacePolicyFragmentDeleteOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + + return &out +} + +// WorkspacePolicyFragmentDelete ... +func (c PolicyFragmentClient) WorkspacePolicyFragmentDelete(ctx context.Context, id WorkspacePolicyFragmentId, options WorkspacePolicyFragmentDeleteOperationOptions) (result WorkspacePolicyFragmentDeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + 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 + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/method_workspacepolicyfragmentget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/method_workspacepolicyfragmentget.go new file mode 100644 index 000000000000..24b3402ea1f5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/method_workspacepolicyfragmentget.go @@ -0,0 +1,83 @@ +package policyfragment + +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 WorkspacePolicyFragmentGetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *PolicyFragmentContract +} + +type WorkspacePolicyFragmentGetOperationOptions struct { + Format *PolicyFragmentContentFormat +} + +func DefaultWorkspacePolicyFragmentGetOperationOptions() WorkspacePolicyFragmentGetOperationOptions { + return WorkspacePolicyFragmentGetOperationOptions{} +} + +func (o WorkspacePolicyFragmentGetOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o WorkspacePolicyFragmentGetOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + return &out +} + +func (o WorkspacePolicyFragmentGetOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Format != nil { + out.Append("format", fmt.Sprintf("%v", *o.Format)) + } + return &out +} + +// WorkspacePolicyFragmentGet ... +func (c PolicyFragmentClient) WorkspacePolicyFragmentGet(ctx context.Context, id WorkspacePolicyFragmentId, options WorkspacePolicyFragmentGetOperationOptions) (result WorkspacePolicyFragmentGetOperationResponse, 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 PolicyFragmentContract + 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/apimanagement/2023-05-01-preview/policyfragment/method_workspacepolicyfragmentgetentitytag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/method_workspacepolicyfragmentgetentitytag.go new file mode 100644 index 000000000000..c2c987854f8c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/method_workspacepolicyfragmentgetentitytag.go @@ -0,0 +1,46 @@ +package policyfragment + +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 WorkspacePolicyFragmentGetEntityTagOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// WorkspacePolicyFragmentGetEntityTag ... +func (c PolicyFragmentClient) WorkspacePolicyFragmentGetEntityTag(ctx context.Context, id WorkspacePolicyFragmentId) (result WorkspacePolicyFragmentGetEntityTagOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodHead, + 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/apimanagement/2023-05-01-preview/policyfragment/method_workspacepolicyfragmentlistbyservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/method_workspacepolicyfragmentlistbyservice.go new file mode 100644 index 000000000000..601c1855d17f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/method_workspacepolicyfragmentlistbyservice.go @@ -0,0 +1,145 @@ +package policyfragment + +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 WorkspacePolicyFragmentListByServiceOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]PolicyFragmentContract +} + +type WorkspacePolicyFragmentListByServiceCompleteResult struct { + LatestHttpResponse *http.Response + Items []PolicyFragmentContract +} + +type WorkspacePolicyFragmentListByServiceOperationOptions struct { + Filter *string + Orderby *string + Skip *int64 + Top *int64 +} + +func DefaultWorkspacePolicyFragmentListByServiceOperationOptions() WorkspacePolicyFragmentListByServiceOperationOptions { + return WorkspacePolicyFragmentListByServiceOperationOptions{} +} + +func (o WorkspacePolicyFragmentListByServiceOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o WorkspacePolicyFragmentListByServiceOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + return &out +} + +func (o WorkspacePolicyFragmentListByServiceOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Filter != nil { + out.Append("$filter", fmt.Sprintf("%v", *o.Filter)) + } + if o.Orderby != nil { + out.Append("$orderby", fmt.Sprintf("%v", *o.Orderby)) + } + if o.Skip != nil { + out.Append("$skip", fmt.Sprintf("%v", *o.Skip)) + } + if o.Top != nil { + out.Append("$top", fmt.Sprintf("%v", *o.Top)) + } + return &out +} + +type WorkspacePolicyFragmentListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkspacePolicyFragmentListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// WorkspacePolicyFragmentListByService ... +func (c PolicyFragmentClient) WorkspacePolicyFragmentListByService(ctx context.Context, id WorkspaceId, options WorkspacePolicyFragmentListByServiceOperationOptions) (result WorkspacePolicyFragmentListByServiceOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + OptionsObject: options, + Pager: &WorkspacePolicyFragmentListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/policyFragments", 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 *[]PolicyFragmentContract `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// WorkspacePolicyFragmentListByServiceComplete retrieves all the results into a single object +func (c PolicyFragmentClient) WorkspacePolicyFragmentListByServiceComplete(ctx context.Context, id WorkspaceId, options WorkspacePolicyFragmentListByServiceOperationOptions) (WorkspacePolicyFragmentListByServiceCompleteResult, error) { + return c.WorkspacePolicyFragmentListByServiceCompleteMatchingPredicate(ctx, id, options, PolicyFragmentContractOperationPredicate{}) +} + +// WorkspacePolicyFragmentListByServiceCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c PolicyFragmentClient) WorkspacePolicyFragmentListByServiceCompleteMatchingPredicate(ctx context.Context, id WorkspaceId, options WorkspacePolicyFragmentListByServiceOperationOptions, predicate PolicyFragmentContractOperationPredicate) (result WorkspacePolicyFragmentListByServiceCompleteResult, err error) { + items := make([]PolicyFragmentContract, 0) + + resp, err := c.WorkspacePolicyFragmentListByService(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 = WorkspacePolicyFragmentListByServiceCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/method_workspacepolicyfragmentlistreferences.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/method_workspacepolicyfragmentlistreferences.go new file mode 100644 index 000000000000..fca10ec83a68 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/method_workspacepolicyfragmentlistreferences.go @@ -0,0 +1,137 @@ +package policyfragment + +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 WorkspacePolicyFragmentListReferencesOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]Resource +} + +type WorkspacePolicyFragmentListReferencesCompleteResult struct { + LatestHttpResponse *http.Response + Items []Resource +} + +type WorkspacePolicyFragmentListReferencesOperationOptions struct { + Skip *int64 + Top *int64 +} + +func DefaultWorkspacePolicyFragmentListReferencesOperationOptions() WorkspacePolicyFragmentListReferencesOperationOptions { + return WorkspacePolicyFragmentListReferencesOperationOptions{} +} + +func (o WorkspacePolicyFragmentListReferencesOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o WorkspacePolicyFragmentListReferencesOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + return &out +} + +func (o WorkspacePolicyFragmentListReferencesOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Skip != nil { + out.Append("$skip", fmt.Sprintf("%v", *o.Skip)) + } + if o.Top != nil { + out.Append("$top", fmt.Sprintf("%v", *o.Top)) + } + return &out +} + +type WorkspacePolicyFragmentListReferencesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkspacePolicyFragmentListReferencesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// WorkspacePolicyFragmentListReferences ... +func (c PolicyFragmentClient) WorkspacePolicyFragmentListReferences(ctx context.Context, id WorkspacePolicyFragmentId, options WorkspacePolicyFragmentListReferencesOperationOptions) (result WorkspacePolicyFragmentListReferencesOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPost, + OptionsObject: options, + Pager: &WorkspacePolicyFragmentListReferencesCustomPager{}, + Path: fmt.Sprintf("%s/listReferences", 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 *[]Resource `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// WorkspacePolicyFragmentListReferencesComplete retrieves all the results into a single object +func (c PolicyFragmentClient) WorkspacePolicyFragmentListReferencesComplete(ctx context.Context, id WorkspacePolicyFragmentId, options WorkspacePolicyFragmentListReferencesOperationOptions) (WorkspacePolicyFragmentListReferencesCompleteResult, error) { + return c.WorkspacePolicyFragmentListReferencesCompleteMatchingPredicate(ctx, id, options, ResourceOperationPredicate{}) +} + +// WorkspacePolicyFragmentListReferencesCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c PolicyFragmentClient) WorkspacePolicyFragmentListReferencesCompleteMatchingPredicate(ctx context.Context, id WorkspacePolicyFragmentId, options WorkspacePolicyFragmentListReferencesOperationOptions, predicate ResourceOperationPredicate) (result WorkspacePolicyFragmentListReferencesCompleteResult, err error) { + items := make([]Resource, 0) + + resp, err := c.WorkspacePolicyFragmentListReferences(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 = WorkspacePolicyFragmentListReferencesCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policyfragment/model_policyfragmentcontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/model_policyfragmentcontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policyfragment/model_policyfragmentcontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/model_policyfragmentcontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/model_policyfragmentcontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/model_policyfragmentcontractproperties.go new file mode 100644 index 000000000000..eaf08d280b9b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/model_policyfragmentcontractproperties.go @@ -0,0 +1,11 @@ +package policyfragment + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PolicyFragmentContractProperties struct { + Description *string `json:"description,omitempty"` + Format *PolicyFragmentContentFormat `json:"format,omitempty"` + ProvisioningState *string `json:"provisioningState,omitempty"` + Value string `json:"value"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policyfragment/model_resource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/model_resource.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policyfragment/model_resource.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/model_resource.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policyfragment/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policyfragment/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policyfragment/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/version.go similarity index 86% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policyfragment/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/version.go index 80d940bd87e9..4dacdc7a8b22 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policyfragment/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/version.go @@ -5,7 +5,7 @@ import "fmt" // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2022-08-01" +const defaultApiVersion = "2023-05-01-preview" func userAgent() string { return fmt.Sprintf("hashicorp/go-azure-sdk/policyfragment/%s", defaultApiVersion) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/README.md new file mode 100644 index 000000000000..669da0aeeade --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/README.md @@ -0,0 +1,234 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product` Documentation + +The `product` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2023-05-01-preview`). + +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/apimanagement/2023-05-01-preview/product" +``` + + +### Client Initialization + +```go +client := product.NewProductClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `ProductClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := product.NewProductID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "productIdValue") + +payload := product.ProductContract{ + // ... +} + + +read, err := client.CreateOrUpdate(ctx, id, payload, product.DefaultCreateOrUpdateOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ProductClient.Delete` + +```go +ctx := context.TODO() +id := product.NewProductID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "productIdValue") + +read, err := client.Delete(ctx, id, product.DefaultDeleteOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ProductClient.Get` + +```go +ctx := context.TODO() +id := product.NewProductID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "productIdValue") + +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: `ProductClient.GetEntityTag` + +```go +ctx := context.TODO() +id := product.NewProductID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "productIdValue") + +read, err := client.GetEntityTag(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ProductClient.ListByService` + +```go +ctx := context.TODO() +id := product.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue") + +// alternatively `client.ListByService(ctx, id, product.DefaultListByServiceOperationOptions())` can be used to do batched pagination +items, err := client.ListByServiceComplete(ctx, id, product.DefaultListByServiceOperationOptions()) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `ProductClient.Update` + +```go +ctx := context.TODO() +id := product.NewProductID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "productIdValue") + +payload := product.ProductUpdateParameters{ + // ... +} + + +read, err := client.Update(ctx, id, payload, product.DefaultUpdateOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ProductClient.WorkspaceProductCreateOrUpdate` + +```go +ctx := context.TODO() +id := product.NewWorkspaceProductID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "productIdValue") + +payload := product.ProductContract{ + // ... +} + + +read, err := client.WorkspaceProductCreateOrUpdate(ctx, id, payload, product.DefaultWorkspaceProductCreateOrUpdateOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ProductClient.WorkspaceProductDelete` + +```go +ctx := context.TODO() +id := product.NewWorkspaceProductID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "productIdValue") + +read, err := client.WorkspaceProductDelete(ctx, id, product.DefaultWorkspaceProductDeleteOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ProductClient.WorkspaceProductGet` + +```go +ctx := context.TODO() +id := product.NewWorkspaceProductID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "productIdValue") + +read, err := client.WorkspaceProductGet(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ProductClient.WorkspaceProductGetEntityTag` + +```go +ctx := context.TODO() +id := product.NewWorkspaceProductID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "productIdValue") + +read, err := client.WorkspaceProductGetEntityTag(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ProductClient.WorkspaceProductListByService` + +```go +ctx := context.TODO() +id := product.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue") + +// alternatively `client.WorkspaceProductListByService(ctx, id, product.DefaultWorkspaceProductListByServiceOperationOptions())` can be used to do batched pagination +items, err := client.WorkspaceProductListByServiceComplete(ctx, id, product.DefaultWorkspaceProductListByServiceOperationOptions()) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `ProductClient.WorkspaceProductUpdate` + +```go +ctx := context.TODO() +id := product.NewWorkspaceProductID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "productIdValue") + +payload := product.ProductUpdateParameters{ + // ... +} + + +read, err := client.WorkspaceProductUpdate(ctx, id, payload, product.DefaultWorkspaceProductUpdateOperationOptions()) +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/apimanagement/2022-08-01/product/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/product/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/product/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/product/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/product/id_product.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/id_product.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/product/id_product.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/id_product.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/product/id_service.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/id_service.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/product/id_service.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/id_service.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/id_workspace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/id_workspace.go new file mode 100644 index 000000000000..72e09a3fc43c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/id_workspace.go @@ -0,0 +1,139 @@ +package product + +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(&WorkspaceId{}) +} + +var _ resourceids.ResourceId = &WorkspaceId{} + +// WorkspaceId is a struct representing the Resource ID for a Workspace +type WorkspaceId struct { + SubscriptionId string + ResourceGroupName string + ServiceName string + WorkspaceId string +} + +// NewWorkspaceID returns a new WorkspaceId struct +func NewWorkspaceID(subscriptionId string, resourceGroupName string, serviceName string, workspaceId string) WorkspaceId { + return WorkspaceId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + ServiceName: serviceName, + WorkspaceId: workspaceId, + } +} + +// ParseWorkspaceID parses 'input' into a WorkspaceId +func ParseWorkspaceID(input string) (*WorkspaceId, error) { + parser := resourceids.NewParserFromResourceIdType(&WorkspaceId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := WorkspaceId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseWorkspaceIDInsensitively parses 'input' case-insensitively into a WorkspaceId +// note: this method should only be used for API response data and not user input +func ParseWorkspaceIDInsensitively(input string) (*WorkspaceId, error) { + parser := resourceids.NewParserFromResourceIdType(&WorkspaceId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := WorkspaceId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *WorkspaceId) 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.ServiceName, ok = input.Parsed["serviceName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "serviceName", input) + } + + if id.WorkspaceId, ok = input.Parsed["workspaceId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "workspaceId", input) + } + + return nil +} + +// ValidateWorkspaceID checks that 'input' can be parsed as a Workspace ID +func ValidateWorkspaceID(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 := ParseWorkspaceID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Workspace ID +func (id WorkspaceId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.ApiManagement/service/%s/workspaces/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.ServiceName, id.WorkspaceId) +} + +// Segments returns a slice of Resource ID Segments which comprise this Workspace ID +func (id WorkspaceId) 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("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), + resourceids.StaticSegment("staticService", "service", "service"), + resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), + resourceids.UserSpecifiedSegment("workspaceId", "workspaceIdValue"), + } +} + +// String returns a human-readable description of this Workspace ID +func (id WorkspaceId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Service Name: %q", id.ServiceName), + fmt.Sprintf("Workspace: %q", id.WorkspaceId), + } + return fmt.Sprintf("Workspace (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/id_workspaceproduct.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/id_workspaceproduct.go new file mode 100644 index 000000000000..6b11719ded02 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/id_workspaceproduct.go @@ -0,0 +1,148 @@ +package product + +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(&WorkspaceProductId{}) +} + +var _ resourceids.ResourceId = &WorkspaceProductId{} + +// WorkspaceProductId is a struct representing the Resource ID for a Workspace Product +type WorkspaceProductId struct { + SubscriptionId string + ResourceGroupName string + ServiceName string + WorkspaceId string + ProductId string +} + +// NewWorkspaceProductID returns a new WorkspaceProductId struct +func NewWorkspaceProductID(subscriptionId string, resourceGroupName string, serviceName string, workspaceId string, productId string) WorkspaceProductId { + return WorkspaceProductId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + ServiceName: serviceName, + WorkspaceId: workspaceId, + ProductId: productId, + } +} + +// ParseWorkspaceProductID parses 'input' into a WorkspaceProductId +func ParseWorkspaceProductID(input string) (*WorkspaceProductId, error) { + parser := resourceids.NewParserFromResourceIdType(&WorkspaceProductId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := WorkspaceProductId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseWorkspaceProductIDInsensitively parses 'input' case-insensitively into a WorkspaceProductId +// note: this method should only be used for API response data and not user input +func ParseWorkspaceProductIDInsensitively(input string) (*WorkspaceProductId, error) { + parser := resourceids.NewParserFromResourceIdType(&WorkspaceProductId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := WorkspaceProductId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *WorkspaceProductId) 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.ServiceName, ok = input.Parsed["serviceName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "serviceName", input) + } + + if id.WorkspaceId, ok = input.Parsed["workspaceId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "workspaceId", input) + } + + if id.ProductId, ok = input.Parsed["productId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "productId", input) + } + + return nil +} + +// ValidateWorkspaceProductID checks that 'input' can be parsed as a Workspace Product ID +func ValidateWorkspaceProductID(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 := ParseWorkspaceProductID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Workspace Product ID +func (id WorkspaceProductId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.ApiManagement/service/%s/workspaces/%s/products/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.ServiceName, id.WorkspaceId, id.ProductId) +} + +// Segments returns a slice of Resource ID Segments which comprise this Workspace Product ID +func (id WorkspaceProductId) 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("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), + resourceids.StaticSegment("staticService", "service", "service"), + resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), + resourceids.UserSpecifiedSegment("workspaceId", "workspaceIdValue"), + resourceids.StaticSegment("staticProducts", "products", "products"), + resourceids.UserSpecifiedSegment("productId", "productIdValue"), + } +} + +// String returns a human-readable description of this Workspace Product ID +func (id WorkspaceProductId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Service Name: %q", id.ServiceName), + fmt.Sprintf("Workspace: %q", id.WorkspaceId), + fmt.Sprintf("Product: %q", id.ProductId), + } + return fmt.Sprintf("Workspace Product (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/product/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/product/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/product/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/product/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/product/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/product/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/product/method_getentitytag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/method_getentitytag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/product/method_getentitytag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/method_getentitytag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/product/method_listbyservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/method_listbyservice.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/product/method_listbyservice.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/method_listbyservice.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/product/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/method_update.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/product/method_update.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/method_update.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/method_workspaceproductcreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/method_workspaceproductcreateorupdate.go new file mode 100644 index 000000000000..af10ed64d9cf --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/method_workspaceproductcreateorupdate.go @@ -0,0 +1,88 @@ +package product + +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 WorkspaceProductCreateOrUpdateOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *ProductContract +} + +type WorkspaceProductCreateOrUpdateOperationOptions struct { + IfMatch *string +} + +func DefaultWorkspaceProductCreateOrUpdateOperationOptions() WorkspaceProductCreateOrUpdateOperationOptions { + return WorkspaceProductCreateOrUpdateOperationOptions{} +} + +func (o WorkspaceProductCreateOrUpdateOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + if o.IfMatch != nil { + out.Append("If-Match", fmt.Sprintf("%v", *o.IfMatch)) + } + return &out +} + +func (o WorkspaceProductCreateOrUpdateOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + return &out +} + +func (o WorkspaceProductCreateOrUpdateOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + + return &out +} + +// WorkspaceProductCreateOrUpdate ... +func (c ProductClient) WorkspaceProductCreateOrUpdate(ctx context.Context, id WorkspaceProductId, input ProductContract, options WorkspaceProductCreateOrUpdateOperationOptions) (result WorkspaceProductCreateOrUpdateOperationResponse, 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 ProductContract + 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/apimanagement/2023-05-01-preview/product/method_workspaceproductdelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/method_workspaceproductdelete.go new file mode 100644 index 000000000000..3bf8f536240f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/method_workspaceproductdelete.go @@ -0,0 +1,79 @@ +package product + +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 WorkspaceProductDeleteOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +type WorkspaceProductDeleteOperationOptions struct { + DeleteSubscriptions *bool + IfMatch *string +} + +func DefaultWorkspaceProductDeleteOperationOptions() WorkspaceProductDeleteOperationOptions { + return WorkspaceProductDeleteOperationOptions{} +} + +func (o WorkspaceProductDeleteOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + if o.IfMatch != nil { + out.Append("If-Match", fmt.Sprintf("%v", *o.IfMatch)) + } + return &out +} + +func (o WorkspaceProductDeleteOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + return &out +} + +func (o WorkspaceProductDeleteOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.DeleteSubscriptions != nil { + out.Append("deleteSubscriptions", fmt.Sprintf("%v", *o.DeleteSubscriptions)) + } + return &out +} + +// WorkspaceProductDelete ... +func (c ProductClient) WorkspaceProductDelete(ctx context.Context, id WorkspaceProductId, options WorkspaceProductDeleteOperationOptions) (result WorkspaceProductDeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + 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 + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/method_workspaceproductget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/method_workspaceproductget.go new file mode 100644 index 000000000000..d746f01c02e4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/method_workspaceproductget.go @@ -0,0 +1,54 @@ +package product + +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 WorkspaceProductGetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *ProductContract +} + +// WorkspaceProductGet ... +func (c ProductClient) WorkspaceProductGet(ctx context.Context, id WorkspaceProductId) (result WorkspaceProductGetOperationResponse, 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 ProductContract + 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/apimanagement/2023-05-01-preview/product/method_workspaceproductgetentitytag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/method_workspaceproductgetentitytag.go new file mode 100644 index 000000000000..0cb17f542c78 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/method_workspaceproductgetentitytag.go @@ -0,0 +1,46 @@ +package product + +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 WorkspaceProductGetEntityTagOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// WorkspaceProductGetEntityTag ... +func (c ProductClient) WorkspaceProductGetEntityTag(ctx context.Context, id WorkspaceProductId) (result WorkspaceProductGetEntityTagOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodHead, + 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/apimanagement/2023-05-01-preview/product/method_workspaceproductlistbyservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/method_workspaceproductlistbyservice.go new file mode 100644 index 000000000000..457b9a161c9c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/method_workspaceproductlistbyservice.go @@ -0,0 +1,149 @@ +package product + +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 WorkspaceProductListByServiceOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]ProductContract +} + +type WorkspaceProductListByServiceCompleteResult struct { + LatestHttpResponse *http.Response + Items []ProductContract +} + +type WorkspaceProductListByServiceOperationOptions struct { + ExpandGroups *bool + Filter *string + Skip *int64 + Tags *string + Top *int64 +} + +func DefaultWorkspaceProductListByServiceOperationOptions() WorkspaceProductListByServiceOperationOptions { + return WorkspaceProductListByServiceOperationOptions{} +} + +func (o WorkspaceProductListByServiceOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o WorkspaceProductListByServiceOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + return &out +} + +func (o WorkspaceProductListByServiceOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.ExpandGroups != nil { + out.Append("expandGroups", fmt.Sprintf("%v", *o.ExpandGroups)) + } + if o.Filter != nil { + out.Append("$filter", fmt.Sprintf("%v", *o.Filter)) + } + if o.Skip != nil { + out.Append("$skip", fmt.Sprintf("%v", *o.Skip)) + } + if o.Tags != nil { + out.Append("tags", fmt.Sprintf("%v", *o.Tags)) + } + if o.Top != nil { + out.Append("$top", fmt.Sprintf("%v", *o.Top)) + } + return &out +} + +type WorkspaceProductListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkspaceProductListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// WorkspaceProductListByService ... +func (c ProductClient) WorkspaceProductListByService(ctx context.Context, id WorkspaceId, options WorkspaceProductListByServiceOperationOptions) (result WorkspaceProductListByServiceOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + OptionsObject: options, + Pager: &WorkspaceProductListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/products", 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 *[]ProductContract `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// WorkspaceProductListByServiceComplete retrieves all the results into a single object +func (c ProductClient) WorkspaceProductListByServiceComplete(ctx context.Context, id WorkspaceId, options WorkspaceProductListByServiceOperationOptions) (WorkspaceProductListByServiceCompleteResult, error) { + return c.WorkspaceProductListByServiceCompleteMatchingPredicate(ctx, id, options, ProductContractOperationPredicate{}) +} + +// WorkspaceProductListByServiceCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c ProductClient) WorkspaceProductListByServiceCompleteMatchingPredicate(ctx context.Context, id WorkspaceId, options WorkspaceProductListByServiceOperationOptions, predicate ProductContractOperationPredicate) (result WorkspaceProductListByServiceCompleteResult, err error) { + items := make([]ProductContract, 0) + + resp, err := c.WorkspaceProductListByService(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 = WorkspaceProductListByServiceCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/method_workspaceproductupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/method_workspaceproductupdate.go new file mode 100644 index 000000000000..e1305ecd777b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/method_workspaceproductupdate.go @@ -0,0 +1,87 @@ +package product + +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 WorkspaceProductUpdateOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *ProductContract +} + +type WorkspaceProductUpdateOperationOptions struct { + IfMatch *string +} + +func DefaultWorkspaceProductUpdateOperationOptions() WorkspaceProductUpdateOperationOptions { + return WorkspaceProductUpdateOperationOptions{} +} + +func (o WorkspaceProductUpdateOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + if o.IfMatch != nil { + out.Append("If-Match", fmt.Sprintf("%v", *o.IfMatch)) + } + return &out +} + +func (o WorkspaceProductUpdateOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + return &out +} + +func (o WorkspaceProductUpdateOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + + return &out +} + +// WorkspaceProductUpdate ... +func (c ProductClient) WorkspaceProductUpdate(ctx context.Context, id WorkspaceProductId, input ProductUpdateParameters, options WorkspaceProductUpdateOperationOptions) (result WorkspaceProductUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPatch, + 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 ProductContract + 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/apimanagement/2022-08-01/product/model_productcontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/model_productcontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/product/model_productcontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/model_productcontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/product/model_productcontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/model_productcontractproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/product/model_productcontractproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/model_productcontractproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/product/model_productupdateparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/model_productupdateparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/product/model_productupdateparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/model_productupdateparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/product/model_productupdateproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/model_productupdateproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/product/model_productupdateproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/model_productupdateproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/product/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/product/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/product/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/version.go similarity index 86% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/product/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/version.go index dd6f288b59ce..c58dda31043f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/product/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/version.go @@ -5,7 +5,7 @@ import "fmt" // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2022-08-01" +const defaultApiVersion = "2023-05-01-preview" func userAgent() string { return fmt.Sprintf("hashicorp/go-azure-sdk/product/%s", defaultApiVersion) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productapi/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productapi/README.md similarity index 93% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productapi/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productapi/README.md index 0f3db930a6b7..424df2959af1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productapi/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productapi/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productapi` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productapi` Documentation -The `productapi` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2022-08-01`). +The `productapi` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2023-05-01-preview`). 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/apimanagement/2022-08-01/productapi" +import "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productapi" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productapi/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productapi/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productapi/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productapi/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productapi/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productapi/constants.go similarity index 96% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productapi/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productapi/constants.go index a2efe7f06410..5102d6bf3c4e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productapi/constants.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productapi/constants.go @@ -13,7 +13,9 @@ type ApiType string const ( ApiTypeGraphql ApiType = "graphql" + ApiTypeGrpc ApiType = "grpc" ApiTypeHTTP ApiType = "http" + ApiTypeOdata ApiType = "odata" ApiTypeSoap ApiType = "soap" ApiTypeWebsocket ApiType = "websocket" ) @@ -21,7 +23,9 @@ const ( func PossibleValuesForApiType() []string { return []string{ string(ApiTypeGraphql), + string(ApiTypeGrpc), string(ApiTypeHTTP), + string(ApiTypeOdata), string(ApiTypeSoap), string(ApiTypeWebsocket), } @@ -43,7 +47,9 @@ func (s *ApiType) UnmarshalJSON(bytes []byte) error { func parseApiType(input string) (*ApiType, error) { vals := map[string]ApiType{ "graphql": ApiTypeGraphql, + "grpc": ApiTypeGrpc, "http": ApiTypeHTTP, + "odata": ApiTypeOdata, "soap": ApiTypeSoap, "websocket": ApiTypeWebsocket, } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productapi/id_product.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productapi/id_product.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productapi/id_product.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productapi/id_product.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productapi/id_productapi.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productapi/id_productapi.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productapi/id_productapi.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productapi/id_productapi.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productapi/method_checkentityexists.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productapi/method_checkentityexists.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productapi/method_checkentityexists.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productapi/method_checkentityexists.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productapi/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productapi/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productapi/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productapi/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productapi/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productapi/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productapi/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productapi/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productapi/method_listbyproduct.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productapi/method_listbyproduct.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productapi/method_listbyproduct.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productapi/method_listbyproduct.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productapi/model_apicontactinformation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productapi/model_apicontactinformation.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productapi/model_apicontactinformation.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productapi/model_apicontactinformation.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productapi/model_apicontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productapi/model_apicontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productapi/model_apicontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productapi/model_apicontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productapi/model_apicontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productapi/model_apicontractproperties.go similarity index 95% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productapi/model_apicontractproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productapi/model_apicontractproperties.go index af49c49c9450..ff4acc2668f7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productapi/model_apicontractproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productapi/model_apicontractproperties.go @@ -19,6 +19,7 @@ type ApiContractProperties struct { License *ApiLicenseInformation `json:"license,omitempty"` Path string `json:"path"` Protocols *[]Protocol `json:"protocols,omitempty"` + ProvisioningState *string `json:"provisioningState,omitempty"` ServiceUrl *string `json:"serviceUrl,omitempty"` SourceApiId *string `json:"sourceApiId,omitempty"` SubscriptionKeyParameterNames *SubscriptionKeyParameterNamesContract `json:"subscriptionKeyParameterNames,omitempty"` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productapi/model_apilicenseinformation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productapi/model_apilicenseinformation.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productapi/model_apilicenseinformation.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productapi/model_apilicenseinformation.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productapi/model_apiversionsetcontractdetails.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productapi/model_apiversionsetcontractdetails.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productapi/model_apiversionsetcontractdetails.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productapi/model_apiversionsetcontractdetails.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productapi/model_authenticationsettingscontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productapi/model_authenticationsettingscontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productapi/model_authenticationsettingscontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productapi/model_authenticationsettingscontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productapi/model_oauth2authenticationsettingscontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productapi/model_oauth2authenticationsettingscontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productapi/model_oauth2authenticationsettingscontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productapi/model_oauth2authenticationsettingscontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productapi/model_openidauthenticationsettingscontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productapi/model_openidauthenticationsettingscontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productapi/model_openidauthenticationsettingscontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productapi/model_openidauthenticationsettingscontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productapi/model_subscriptionkeyparameternamescontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productapi/model_subscriptionkeyparameternamescontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productapi/model_subscriptionkeyparameternamescontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productapi/model_subscriptionkeyparameternamescontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productapi/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productapi/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productapi/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productapi/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productapi/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productapi/version.go similarity index 86% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productapi/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productapi/version.go index 85dff7bdb52d..08aacd3d83e0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productapi/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productapi/version.go @@ -5,7 +5,7 @@ import "fmt" // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2022-08-01" +const defaultApiVersion = "2023-05-01-preview" func userAgent() string { return fmt.Sprintf("hashicorp/go-azure-sdk/productapi/%s", defaultApiVersion) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productgroup/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productgroup/README.md similarity index 93% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productgroup/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productgroup/README.md index f86be84f8998..591578ac899c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productgroup/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productgroup/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productgroup` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productgroup` Documentation -The `productgroup` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2022-08-01`). +The `productgroup` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2023-05-01-preview`). 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/apimanagement/2022-08-01/productgroup" +import "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productgroup" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productgroup/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productgroup/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productgroup/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productgroup/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productgroup/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productgroup/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productgroup/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productgroup/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productgroup/id_product.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productgroup/id_product.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productgroup/id_product.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productgroup/id_product.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productgroup/id_productgroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productgroup/id_productgroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productgroup/id_productgroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productgroup/id_productgroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productgroup/method_checkentityexists.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productgroup/method_checkentityexists.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productgroup/method_checkentityexists.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productgroup/method_checkentityexists.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productgroup/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productgroup/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productgroup/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productgroup/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productgroup/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productgroup/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productgroup/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productgroup/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productgroup/method_listbyproduct.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productgroup/method_listbyproduct.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productgroup/method_listbyproduct.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productgroup/method_listbyproduct.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productgroup/model_groupcontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productgroup/model_groupcontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productgroup/model_groupcontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productgroup/model_groupcontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productgroup/model_groupcontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productgroup/model_groupcontractproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productgroup/model_groupcontractproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productgroup/model_groupcontractproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productgroup/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productgroup/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productgroup/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productgroup/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productgroup/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productgroup/version.go similarity index 86% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productgroup/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productgroup/version.go index 6851526672a9..af099d0669bf 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productgroup/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productgroup/version.go @@ -5,7 +5,7 @@ import "fmt" // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2022-08-01" +const defaultApiVersion = "2023-05-01-preview" func userAgent() string { return fmt.Sprintf("hashicorp/go-azure-sdk/productgroup/%s", defaultApiVersion) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productpolicy/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productpolicy/README.md new file mode 100644 index 000000000000..0e9eb7296c06 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productpolicy/README.md @@ -0,0 +1,192 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productpolicy` Documentation + +The `productpolicy` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2023-05-01-preview`). + +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/apimanagement/2023-05-01-preview/productpolicy" +``` + + +### Client Initialization + +```go +client := productpolicy.NewProductPolicyClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `ProductPolicyClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := productpolicy.NewProductID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "productIdValue") + +payload := productpolicy.PolicyContract{ + // ... +} + + +read, err := client.CreateOrUpdate(ctx, id, payload, productpolicy.DefaultCreateOrUpdateOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ProductPolicyClient.Delete` + +```go +ctx := context.TODO() +id := productpolicy.NewProductID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "productIdValue") + +read, err := client.Delete(ctx, id, productpolicy.DefaultDeleteOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ProductPolicyClient.Get` + +```go +ctx := context.TODO() +id := productpolicy.NewProductID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "productIdValue") + +read, err := client.Get(ctx, id, productpolicy.DefaultGetOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ProductPolicyClient.GetEntityTag` + +```go +ctx := context.TODO() +id := productpolicy.NewProductID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "productIdValue") + +read, err := client.GetEntityTag(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ProductPolicyClient.ListByProduct` + +```go +ctx := context.TODO() +id := productpolicy.NewProductID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "productIdValue") + +// alternatively `client.ListByProduct(ctx, id)` can be used to do batched pagination +items, err := client.ListByProductComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `ProductPolicyClient.WorkspaceProductPolicyCreateOrUpdate` + +```go +ctx := context.TODO() +id := productpolicy.NewWorkspaceProductID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "productIdValue") + +payload := productpolicy.PolicyContract{ + // ... +} + + +read, err := client.WorkspaceProductPolicyCreateOrUpdate(ctx, id, payload, productpolicy.DefaultWorkspaceProductPolicyCreateOrUpdateOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ProductPolicyClient.WorkspaceProductPolicyDelete` + +```go +ctx := context.TODO() +id := productpolicy.NewWorkspaceProductID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "productIdValue") + +read, err := client.WorkspaceProductPolicyDelete(ctx, id, productpolicy.DefaultWorkspaceProductPolicyDeleteOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ProductPolicyClient.WorkspaceProductPolicyGet` + +```go +ctx := context.TODO() +id := productpolicy.NewWorkspaceProductID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "productIdValue") + +read, err := client.WorkspaceProductPolicyGet(ctx, id, productpolicy.DefaultWorkspaceProductPolicyGetOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ProductPolicyClient.WorkspaceProductPolicyGetEntityTag` + +```go +ctx := context.TODO() +id := productpolicy.NewWorkspaceProductID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "productIdValue") + +read, err := client.WorkspaceProductPolicyGetEntityTag(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ProductPolicyClient.WorkspaceProductPolicyListByProduct` + +```go +ctx := context.TODO() +id := productpolicy.NewWorkspaceProductID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "productIdValue") + +// alternatively `client.WorkspaceProductPolicyListByProduct(ctx, id)` can be used to do batched pagination +items, err := client.WorkspaceProductPolicyListByProductComplete(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/apimanagement/2022-08-01/productpolicy/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productpolicy/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productpolicy/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productpolicy/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productpolicy/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productpolicy/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productpolicy/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productpolicy/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productpolicy/id_product.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productpolicy/id_product.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productpolicy/id_product.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productpolicy/id_product.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productpolicy/id_workspaceproduct.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productpolicy/id_workspaceproduct.go new file mode 100644 index 000000000000..de50624b5f98 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productpolicy/id_workspaceproduct.go @@ -0,0 +1,148 @@ +package productpolicy + +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(&WorkspaceProductId{}) +} + +var _ resourceids.ResourceId = &WorkspaceProductId{} + +// WorkspaceProductId is a struct representing the Resource ID for a Workspace Product +type WorkspaceProductId struct { + SubscriptionId string + ResourceGroupName string + ServiceName string + WorkspaceId string + ProductId string +} + +// NewWorkspaceProductID returns a new WorkspaceProductId struct +func NewWorkspaceProductID(subscriptionId string, resourceGroupName string, serviceName string, workspaceId string, productId string) WorkspaceProductId { + return WorkspaceProductId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + ServiceName: serviceName, + WorkspaceId: workspaceId, + ProductId: productId, + } +} + +// ParseWorkspaceProductID parses 'input' into a WorkspaceProductId +func ParseWorkspaceProductID(input string) (*WorkspaceProductId, error) { + parser := resourceids.NewParserFromResourceIdType(&WorkspaceProductId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := WorkspaceProductId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseWorkspaceProductIDInsensitively parses 'input' case-insensitively into a WorkspaceProductId +// note: this method should only be used for API response data and not user input +func ParseWorkspaceProductIDInsensitively(input string) (*WorkspaceProductId, error) { + parser := resourceids.NewParserFromResourceIdType(&WorkspaceProductId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := WorkspaceProductId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *WorkspaceProductId) 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.ServiceName, ok = input.Parsed["serviceName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "serviceName", input) + } + + if id.WorkspaceId, ok = input.Parsed["workspaceId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "workspaceId", input) + } + + if id.ProductId, ok = input.Parsed["productId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "productId", input) + } + + return nil +} + +// ValidateWorkspaceProductID checks that 'input' can be parsed as a Workspace Product ID +func ValidateWorkspaceProductID(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 := ParseWorkspaceProductID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Workspace Product ID +func (id WorkspaceProductId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.ApiManagement/service/%s/workspaces/%s/products/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.ServiceName, id.WorkspaceId, id.ProductId) +} + +// Segments returns a slice of Resource ID Segments which comprise this Workspace Product ID +func (id WorkspaceProductId) 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("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), + resourceids.StaticSegment("staticService", "service", "service"), + resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), + resourceids.UserSpecifiedSegment("workspaceId", "workspaceIdValue"), + resourceids.StaticSegment("staticProducts", "products", "products"), + resourceids.UserSpecifiedSegment("productId", "productIdValue"), + } +} + +// String returns a human-readable description of this Workspace Product ID +func (id WorkspaceProductId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Service Name: %q", id.ServiceName), + fmt.Sprintf("Workspace: %q", id.WorkspaceId), + fmt.Sprintf("Product: %q", id.ProductId), + } + return fmt.Sprintf("Workspace Product (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productpolicy/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productpolicy/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productpolicy/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productpolicy/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productpolicy/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productpolicy/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productpolicy/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productpolicy/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productpolicy/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productpolicy/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productpolicy/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productpolicy/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productpolicy/method_getentitytag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productpolicy/method_getentitytag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productpolicy/method_getentitytag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productpolicy/method_getentitytag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productpolicy/method_listbyproduct.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productpolicy/method_listbyproduct.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productpolicy/method_listbyproduct.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productpolicy/method_listbyproduct.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productpolicy/method_workspaceproductpolicycreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productpolicy/method_workspaceproductpolicycreateorupdate.go new file mode 100644 index 000000000000..9a55b9a739a0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productpolicy/method_workspaceproductpolicycreateorupdate.go @@ -0,0 +1,88 @@ +package productpolicy + +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 WorkspaceProductPolicyCreateOrUpdateOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *PolicyContract +} + +type WorkspaceProductPolicyCreateOrUpdateOperationOptions struct { + IfMatch *string +} + +func DefaultWorkspaceProductPolicyCreateOrUpdateOperationOptions() WorkspaceProductPolicyCreateOrUpdateOperationOptions { + return WorkspaceProductPolicyCreateOrUpdateOperationOptions{} +} + +func (o WorkspaceProductPolicyCreateOrUpdateOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + if o.IfMatch != nil { + out.Append("If-Match", fmt.Sprintf("%v", *o.IfMatch)) + } + return &out +} + +func (o WorkspaceProductPolicyCreateOrUpdateOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + return &out +} + +func (o WorkspaceProductPolicyCreateOrUpdateOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + + return &out +} + +// WorkspaceProductPolicyCreateOrUpdate ... +func (c ProductPolicyClient) WorkspaceProductPolicyCreateOrUpdate(ctx context.Context, id WorkspaceProductId, input PolicyContract, options WorkspaceProductPolicyCreateOrUpdateOperationOptions) (result WorkspaceProductPolicyCreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + OptionsObject: options, + Path: fmt.Sprintf("%s/policies/policy", 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 PolicyContract + 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/apimanagement/2023-05-01-preview/productpolicy/method_workspaceproductpolicydelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productpolicy/method_workspaceproductpolicydelete.go new file mode 100644 index 000000000000..a76872c52a7b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productpolicy/method_workspaceproductpolicydelete.go @@ -0,0 +1,76 @@ +package productpolicy + +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 WorkspaceProductPolicyDeleteOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +type WorkspaceProductPolicyDeleteOperationOptions struct { + IfMatch *string +} + +func DefaultWorkspaceProductPolicyDeleteOperationOptions() WorkspaceProductPolicyDeleteOperationOptions { + return WorkspaceProductPolicyDeleteOperationOptions{} +} + +func (o WorkspaceProductPolicyDeleteOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + if o.IfMatch != nil { + out.Append("If-Match", fmt.Sprintf("%v", *o.IfMatch)) + } + return &out +} + +func (o WorkspaceProductPolicyDeleteOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + return &out +} + +func (o WorkspaceProductPolicyDeleteOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + + return &out +} + +// WorkspaceProductPolicyDelete ... +func (c ProductPolicyClient) WorkspaceProductPolicyDelete(ctx context.Context, id WorkspaceProductId, options WorkspaceProductPolicyDeleteOperationOptions) (result WorkspaceProductPolicyDeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + OptionsObject: options, + Path: fmt.Sprintf("%s/policies/policy", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + 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/apimanagement/2023-05-01-preview/productpolicy/method_workspaceproductpolicyget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productpolicy/method_workspaceproductpolicyget.go new file mode 100644 index 000000000000..cbd5809fb0ec --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productpolicy/method_workspaceproductpolicyget.go @@ -0,0 +1,83 @@ +package productpolicy + +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 WorkspaceProductPolicyGetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *PolicyContract +} + +type WorkspaceProductPolicyGetOperationOptions struct { + Format *PolicyExportFormat +} + +func DefaultWorkspaceProductPolicyGetOperationOptions() WorkspaceProductPolicyGetOperationOptions { + return WorkspaceProductPolicyGetOperationOptions{} +} + +func (o WorkspaceProductPolicyGetOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o WorkspaceProductPolicyGetOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + return &out +} + +func (o WorkspaceProductPolicyGetOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Format != nil { + out.Append("format", fmt.Sprintf("%v", *o.Format)) + } + return &out +} + +// WorkspaceProductPolicyGet ... +func (c ProductPolicyClient) WorkspaceProductPolicyGet(ctx context.Context, id WorkspaceProductId, options WorkspaceProductPolicyGetOperationOptions) (result WorkspaceProductPolicyGetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + OptionsObject: options, + Path: fmt.Sprintf("%s/policies/policy", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + 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 PolicyContract + 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/apimanagement/2023-05-01-preview/productpolicy/method_workspaceproductpolicygetentitytag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productpolicy/method_workspaceproductpolicygetentitytag.go new file mode 100644 index 000000000000..2b0f1de51e36 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productpolicy/method_workspaceproductpolicygetentitytag.go @@ -0,0 +1,47 @@ +package productpolicy + +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 WorkspaceProductPolicyGetEntityTagOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// WorkspaceProductPolicyGetEntityTag ... +func (c ProductPolicyClient) WorkspaceProductPolicyGetEntityTag(ctx context.Context, id WorkspaceProductId) (result WorkspaceProductPolicyGetEntityTagOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodHead, + Path: fmt.Sprintf("%s/policies/policy", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + 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/apimanagement/2023-05-01-preview/productpolicy/method_workspaceproductpolicylistbyproduct.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productpolicy/method_workspaceproductpolicylistbyproduct.go new file mode 100644 index 000000000000..e6db46320f2a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productpolicy/method_workspaceproductpolicylistbyproduct.go @@ -0,0 +1,105 @@ +package productpolicy + +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 WorkspaceProductPolicyListByProductOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]PolicyContract +} + +type WorkspaceProductPolicyListByProductCompleteResult struct { + LatestHttpResponse *http.Response + Items []PolicyContract +} + +type WorkspaceProductPolicyListByProductCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkspaceProductPolicyListByProductCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// WorkspaceProductPolicyListByProduct ... +func (c ProductPolicyClient) WorkspaceProductPolicyListByProduct(ctx context.Context, id WorkspaceProductId) (result WorkspaceProductPolicyListByProductOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &WorkspaceProductPolicyListByProductCustomPager{}, + Path: fmt.Sprintf("%s/policies", 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 *[]PolicyContract `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// WorkspaceProductPolicyListByProductComplete retrieves all the results into a single object +func (c ProductPolicyClient) WorkspaceProductPolicyListByProductComplete(ctx context.Context, id WorkspaceProductId) (WorkspaceProductPolicyListByProductCompleteResult, error) { + return c.WorkspaceProductPolicyListByProductCompleteMatchingPredicate(ctx, id, PolicyContractOperationPredicate{}) +} + +// WorkspaceProductPolicyListByProductCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c ProductPolicyClient) WorkspaceProductPolicyListByProductCompleteMatchingPredicate(ctx context.Context, id WorkspaceProductId, predicate PolicyContractOperationPredicate) (result WorkspaceProductPolicyListByProductCompleteResult, err error) { + items := make([]PolicyContract, 0) + + resp, err := c.WorkspaceProductPolicyListByProduct(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 = WorkspaceProductPolicyListByProductCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productpolicy/model_policycontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productpolicy/model_policycontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productpolicy/model_policycontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productpolicy/model_policycontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productpolicy/model_policycontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productpolicy/model_policycontractproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productpolicy/model_policycontractproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productpolicy/model_policycontractproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productpolicy/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productpolicy/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productpolicy/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productpolicy/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productpolicy/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productpolicy/version.go similarity index 86% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productpolicy/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productpolicy/version.go index f0f635d40fa2..49bd1e702f81 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productpolicy/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productpolicy/version.go @@ -5,7 +5,7 @@ import "fmt" // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2022-08-01" +const defaultApiVersion = "2023-05-01-preview" func userAgent() string { return fmt.Sprintf("hashicorp/go-azure-sdk/productpolicy/%s", defaultApiVersion) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/producttag/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/producttag/README.md similarity index 94% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/producttag/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/producttag/README.md index 0dda3891e262..3ea9a794ec8f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/producttag/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/producttag/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/producttag` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/producttag` Documentation -The `producttag` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2022-08-01`). +The `producttag` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2023-05-01-preview`). 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/apimanagement/2022-08-01/producttag" +import "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/producttag" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/producttag/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/producttag/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/producttag/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/producttag/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/producttag/id_product.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/producttag/id_product.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/producttag/id_product.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/producttag/id_product.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/producttag/id_producttag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/producttag/id_producttag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/producttag/id_producttag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/producttag/id_producttag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/producttag/method_tagassigntoproduct.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/producttag/method_tagassigntoproduct.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/producttag/method_tagassigntoproduct.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/producttag/method_tagassigntoproduct.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/producttag/method_tagdetachfromproduct.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/producttag/method_tagdetachfromproduct.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/producttag/method_tagdetachfromproduct.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/producttag/method_tagdetachfromproduct.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/producttag/method_taggetbyproduct.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/producttag/method_taggetbyproduct.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/producttag/method_taggetbyproduct.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/producttag/method_taggetbyproduct.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/producttag/method_taggetentitystatebyproduct.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/producttag/method_taggetentitystatebyproduct.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/producttag/method_taggetentitystatebyproduct.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/producttag/method_taggetentitystatebyproduct.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/producttag/method_taglistbyproduct.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/producttag/method_taglistbyproduct.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/producttag/method_taglistbyproduct.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/producttag/method_taglistbyproduct.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/producttag/model_tagcontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/producttag/model_tagcontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/producttag/model_tagcontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/producttag/model_tagcontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/producttag/model_tagcontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/producttag/model_tagcontractproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/producttag/model_tagcontractproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/producttag/model_tagcontractproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/producttag/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/producttag/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/producttag/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/producttag/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/producttag/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/producttag/version.go similarity index 86% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/producttag/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/producttag/version.go index b970ed92f242..f9ab019f46d9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/producttag/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/producttag/version.go @@ -5,7 +5,7 @@ import "fmt" // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2022-08-01" +const defaultApiVersion = "2023-05-01-preview" func userAgent() string { return fmt.Sprintf("hashicorp/go-azure-sdk/producttag/%s", defaultApiVersion) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/schema/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/README.md similarity index 51% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/schema/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/README.md index e3c003e29725..4b49de047db1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/schema/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/schema` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema` Documentation -The `schema` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2022-08-01`). +The `schema` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2023-05-01-preview`). 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/apimanagement/2022-08-01/schema" +import "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema" ``` @@ -100,3 +100,85 @@ for _, item := range items { // do something } ``` + + +### Example Usage: `SchemaClient.WorkspaceGlobalSchemaCreateOrUpdate` + +```go +ctx := context.TODO() +id := schema.NewWorkspaceSchemaID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "schemaIdValue") + +payload := schema.GlobalSchemaContract{ + // ... +} + + +if err := client.WorkspaceGlobalSchemaCreateOrUpdateThenPoll(ctx, id, payload, schema.DefaultWorkspaceGlobalSchemaCreateOrUpdateOperationOptions()); err != nil { + // handle the error +} +``` + + +### Example Usage: `SchemaClient.WorkspaceGlobalSchemaDelete` + +```go +ctx := context.TODO() +id := schema.NewWorkspaceSchemaID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "schemaIdValue") + +read, err := client.WorkspaceGlobalSchemaDelete(ctx, id, schema.DefaultWorkspaceGlobalSchemaDeleteOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `SchemaClient.WorkspaceGlobalSchemaGet` + +```go +ctx := context.TODO() +id := schema.NewWorkspaceSchemaID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "schemaIdValue") + +read, err := client.WorkspaceGlobalSchemaGet(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `SchemaClient.WorkspaceGlobalSchemaGetEntityTag` + +```go +ctx := context.TODO() +id := schema.NewWorkspaceSchemaID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "schemaIdValue") + +read, err := client.WorkspaceGlobalSchemaGetEntityTag(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `SchemaClient.WorkspaceGlobalSchemaListByService` + +```go +ctx := context.TODO() +id := schema.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue") + +// alternatively `client.WorkspaceGlobalSchemaListByService(ctx, id, schema.DefaultWorkspaceGlobalSchemaListByServiceOperationOptions())` can be used to do batched pagination +items, err := client.WorkspaceGlobalSchemaListByServiceComplete(ctx, id, schema.DefaultWorkspaceGlobalSchemaListByServiceOperationOptions()) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/schema/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/schema/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/schema/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/schema/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/schema/id_schema.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/id_schema.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/schema/id_schema.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/id_schema.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/schema/id_service.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/id_service.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/schema/id_service.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/id_service.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/id_workspace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/id_workspace.go new file mode 100644 index 000000000000..f4096e5456a3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/id_workspace.go @@ -0,0 +1,139 @@ +package schema + +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(&WorkspaceId{}) +} + +var _ resourceids.ResourceId = &WorkspaceId{} + +// WorkspaceId is a struct representing the Resource ID for a Workspace +type WorkspaceId struct { + SubscriptionId string + ResourceGroupName string + ServiceName string + WorkspaceId string +} + +// NewWorkspaceID returns a new WorkspaceId struct +func NewWorkspaceID(subscriptionId string, resourceGroupName string, serviceName string, workspaceId string) WorkspaceId { + return WorkspaceId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + ServiceName: serviceName, + WorkspaceId: workspaceId, + } +} + +// ParseWorkspaceID parses 'input' into a WorkspaceId +func ParseWorkspaceID(input string) (*WorkspaceId, error) { + parser := resourceids.NewParserFromResourceIdType(&WorkspaceId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := WorkspaceId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseWorkspaceIDInsensitively parses 'input' case-insensitively into a WorkspaceId +// note: this method should only be used for API response data and not user input +func ParseWorkspaceIDInsensitively(input string) (*WorkspaceId, error) { + parser := resourceids.NewParserFromResourceIdType(&WorkspaceId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := WorkspaceId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *WorkspaceId) 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.ServiceName, ok = input.Parsed["serviceName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "serviceName", input) + } + + if id.WorkspaceId, ok = input.Parsed["workspaceId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "workspaceId", input) + } + + return nil +} + +// ValidateWorkspaceID checks that 'input' can be parsed as a Workspace ID +func ValidateWorkspaceID(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 := ParseWorkspaceID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Workspace ID +func (id WorkspaceId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.ApiManagement/service/%s/workspaces/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.ServiceName, id.WorkspaceId) +} + +// Segments returns a slice of Resource ID Segments which comprise this Workspace ID +func (id WorkspaceId) 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("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), + resourceids.StaticSegment("staticService", "service", "service"), + resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), + resourceids.UserSpecifiedSegment("workspaceId", "workspaceIdValue"), + } +} + +// String returns a human-readable description of this Workspace ID +func (id WorkspaceId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Service Name: %q", id.ServiceName), + fmt.Sprintf("Workspace: %q", id.WorkspaceId), + } + return fmt.Sprintf("Workspace (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/id_workspaceschema.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/id_workspaceschema.go new file mode 100644 index 000000000000..25f35d2ce894 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/id_workspaceschema.go @@ -0,0 +1,148 @@ +package schema + +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(&WorkspaceSchemaId{}) +} + +var _ resourceids.ResourceId = &WorkspaceSchemaId{} + +// WorkspaceSchemaId is a struct representing the Resource ID for a Workspace Schema +type WorkspaceSchemaId struct { + SubscriptionId string + ResourceGroupName string + ServiceName string + WorkspaceId string + SchemaId string +} + +// NewWorkspaceSchemaID returns a new WorkspaceSchemaId struct +func NewWorkspaceSchemaID(subscriptionId string, resourceGroupName string, serviceName string, workspaceId string, schemaId string) WorkspaceSchemaId { + return WorkspaceSchemaId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + ServiceName: serviceName, + WorkspaceId: workspaceId, + SchemaId: schemaId, + } +} + +// ParseWorkspaceSchemaID parses 'input' into a WorkspaceSchemaId +func ParseWorkspaceSchemaID(input string) (*WorkspaceSchemaId, error) { + parser := resourceids.NewParserFromResourceIdType(&WorkspaceSchemaId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := WorkspaceSchemaId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseWorkspaceSchemaIDInsensitively parses 'input' case-insensitively into a WorkspaceSchemaId +// note: this method should only be used for API response data and not user input +func ParseWorkspaceSchemaIDInsensitively(input string) (*WorkspaceSchemaId, error) { + parser := resourceids.NewParserFromResourceIdType(&WorkspaceSchemaId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := WorkspaceSchemaId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *WorkspaceSchemaId) 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.ServiceName, ok = input.Parsed["serviceName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "serviceName", input) + } + + if id.WorkspaceId, ok = input.Parsed["workspaceId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "workspaceId", input) + } + + if id.SchemaId, ok = input.Parsed["schemaId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "schemaId", input) + } + + return nil +} + +// ValidateWorkspaceSchemaID checks that 'input' can be parsed as a Workspace Schema ID +func ValidateWorkspaceSchemaID(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 := ParseWorkspaceSchemaID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Workspace Schema ID +func (id WorkspaceSchemaId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.ApiManagement/service/%s/workspaces/%s/schemas/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.ServiceName, id.WorkspaceId, id.SchemaId) +} + +// Segments returns a slice of Resource ID Segments which comprise this Workspace Schema ID +func (id WorkspaceSchemaId) 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("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), + resourceids.StaticSegment("staticService", "service", "service"), + resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), + resourceids.UserSpecifiedSegment("workspaceId", "workspaceIdValue"), + resourceids.StaticSegment("staticSchemas", "schemas", "schemas"), + resourceids.UserSpecifiedSegment("schemaId", "schemaIdValue"), + } +} + +// String returns a human-readable description of this Workspace Schema ID +func (id WorkspaceSchemaId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Service Name: %q", id.ServiceName), + fmt.Sprintf("Workspace: %q", id.WorkspaceId), + fmt.Sprintf("Schema: %q", id.SchemaId), + } + return fmt.Sprintf("Workspace Schema (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/schema/method_globalschemacreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/method_globalschemacreateorupdate.go similarity index 99% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/schema/method_globalschemacreateorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/method_globalschemacreateorupdate.go index 4f0f7c321a1c..6f6a15cfe785 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/schema/method_globalschemacreateorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/method_globalschemacreateorupdate.go @@ -53,7 +53,6 @@ func (c SchemaClient) GlobalSchemaCreateOrUpdate(ctx context.Context, id SchemaI opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ - http.StatusAccepted, http.StatusCreated, http.StatusOK, }, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/schema/method_globalschemadelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/method_globalschemadelete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/schema/method_globalschemadelete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/method_globalschemadelete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/schema/method_globalschemaget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/method_globalschemaget.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/schema/method_globalschemaget.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/method_globalschemaget.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/schema/method_globalschemagetentitytag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/method_globalschemagetentitytag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/schema/method_globalschemagetentitytag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/method_globalschemagetentitytag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/schema/method_globalschemalistbyservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/method_globalschemalistbyservice.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/schema/method_globalschemalistbyservice.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/method_globalschemalistbyservice.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/method_workspaceglobalschemacreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/method_workspaceglobalschemacreateorupdate.go new file mode 100644 index 000000000000..99be8ac48c41 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/method_workspaceglobalschemacreateorupdate.go @@ -0,0 +1,103 @@ +package schema + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type WorkspaceGlobalSchemaCreateOrUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *GlobalSchemaContract +} + +type WorkspaceGlobalSchemaCreateOrUpdateOperationOptions struct { + IfMatch *string +} + +func DefaultWorkspaceGlobalSchemaCreateOrUpdateOperationOptions() WorkspaceGlobalSchemaCreateOrUpdateOperationOptions { + return WorkspaceGlobalSchemaCreateOrUpdateOperationOptions{} +} + +func (o WorkspaceGlobalSchemaCreateOrUpdateOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + if o.IfMatch != nil { + out.Append("If-Match", fmt.Sprintf("%v", *o.IfMatch)) + } + return &out +} + +func (o WorkspaceGlobalSchemaCreateOrUpdateOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + return &out +} + +func (o WorkspaceGlobalSchemaCreateOrUpdateOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + + return &out +} + +// WorkspaceGlobalSchemaCreateOrUpdate ... +func (c SchemaClient) WorkspaceGlobalSchemaCreateOrUpdate(ctx context.Context, id WorkspaceSchemaId, input GlobalSchemaContract, options WorkspaceGlobalSchemaCreateOrUpdateOperationOptions) (result WorkspaceGlobalSchemaCreateOrUpdateOperationResponse, 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 +} + +// WorkspaceGlobalSchemaCreateOrUpdateThenPoll performs WorkspaceGlobalSchemaCreateOrUpdate then polls until it's completed +func (c SchemaClient) WorkspaceGlobalSchemaCreateOrUpdateThenPoll(ctx context.Context, id WorkspaceSchemaId, input GlobalSchemaContract, options WorkspaceGlobalSchemaCreateOrUpdateOperationOptions) error { + result, err := c.WorkspaceGlobalSchemaCreateOrUpdate(ctx, id, input, options) + if err != nil { + return fmt.Errorf("performing WorkspaceGlobalSchemaCreateOrUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after WorkspaceGlobalSchemaCreateOrUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/method_workspaceglobalschemadelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/method_workspaceglobalschemadelete.go new file mode 100644 index 000000000000..a8aab3185b17 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/method_workspaceglobalschemadelete.go @@ -0,0 +1,76 @@ +package schema + +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 WorkspaceGlobalSchemaDeleteOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +type WorkspaceGlobalSchemaDeleteOperationOptions struct { + IfMatch *string +} + +func DefaultWorkspaceGlobalSchemaDeleteOperationOptions() WorkspaceGlobalSchemaDeleteOperationOptions { + return WorkspaceGlobalSchemaDeleteOperationOptions{} +} + +func (o WorkspaceGlobalSchemaDeleteOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + if o.IfMatch != nil { + out.Append("If-Match", fmt.Sprintf("%v", *o.IfMatch)) + } + return &out +} + +func (o WorkspaceGlobalSchemaDeleteOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + return &out +} + +func (o WorkspaceGlobalSchemaDeleteOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + + return &out +} + +// WorkspaceGlobalSchemaDelete ... +func (c SchemaClient) WorkspaceGlobalSchemaDelete(ctx context.Context, id WorkspaceSchemaId, options WorkspaceGlobalSchemaDeleteOperationOptions) (result WorkspaceGlobalSchemaDeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + 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 + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/method_workspaceglobalschemaget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/method_workspaceglobalschemaget.go new file mode 100644 index 000000000000..73828cf65b63 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/method_workspaceglobalschemaget.go @@ -0,0 +1,54 @@ +package schema + +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 WorkspaceGlobalSchemaGetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *GlobalSchemaContract +} + +// WorkspaceGlobalSchemaGet ... +func (c SchemaClient) WorkspaceGlobalSchemaGet(ctx context.Context, id WorkspaceSchemaId) (result WorkspaceGlobalSchemaGetOperationResponse, 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 GlobalSchemaContract + 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/apimanagement/2023-05-01-preview/schema/method_workspaceglobalschemagetentitytag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/method_workspaceglobalschemagetentitytag.go new file mode 100644 index 000000000000..b1283fa3b7bf --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/method_workspaceglobalschemagetentitytag.go @@ -0,0 +1,46 @@ +package schema + +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 WorkspaceGlobalSchemaGetEntityTagOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// WorkspaceGlobalSchemaGetEntityTag ... +func (c SchemaClient) WorkspaceGlobalSchemaGetEntityTag(ctx context.Context, id WorkspaceSchemaId) (result WorkspaceGlobalSchemaGetEntityTagOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodHead, + 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/apimanagement/2023-05-01-preview/schema/method_workspaceglobalschemalistbyservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/method_workspaceglobalschemalistbyservice.go new file mode 100644 index 000000000000..aeae5549ab2c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/method_workspaceglobalschemalistbyservice.go @@ -0,0 +1,141 @@ +package schema + +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 WorkspaceGlobalSchemaListByServiceOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]GlobalSchemaContract +} + +type WorkspaceGlobalSchemaListByServiceCompleteResult struct { + LatestHttpResponse *http.Response + Items []GlobalSchemaContract +} + +type WorkspaceGlobalSchemaListByServiceOperationOptions struct { + Filter *string + Skip *int64 + Top *int64 +} + +func DefaultWorkspaceGlobalSchemaListByServiceOperationOptions() WorkspaceGlobalSchemaListByServiceOperationOptions { + return WorkspaceGlobalSchemaListByServiceOperationOptions{} +} + +func (o WorkspaceGlobalSchemaListByServiceOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o WorkspaceGlobalSchemaListByServiceOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + return &out +} + +func (o WorkspaceGlobalSchemaListByServiceOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Filter != nil { + out.Append("$filter", fmt.Sprintf("%v", *o.Filter)) + } + if o.Skip != nil { + out.Append("$skip", fmt.Sprintf("%v", *o.Skip)) + } + if o.Top != nil { + out.Append("$top", fmt.Sprintf("%v", *o.Top)) + } + return &out +} + +type WorkspaceGlobalSchemaListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkspaceGlobalSchemaListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// WorkspaceGlobalSchemaListByService ... +func (c SchemaClient) WorkspaceGlobalSchemaListByService(ctx context.Context, id WorkspaceId, options WorkspaceGlobalSchemaListByServiceOperationOptions) (result WorkspaceGlobalSchemaListByServiceOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + OptionsObject: options, + Pager: &WorkspaceGlobalSchemaListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/schemas", 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 *[]GlobalSchemaContract `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// WorkspaceGlobalSchemaListByServiceComplete retrieves all the results into a single object +func (c SchemaClient) WorkspaceGlobalSchemaListByServiceComplete(ctx context.Context, id WorkspaceId, options WorkspaceGlobalSchemaListByServiceOperationOptions) (WorkspaceGlobalSchemaListByServiceCompleteResult, error) { + return c.WorkspaceGlobalSchemaListByServiceCompleteMatchingPredicate(ctx, id, options, GlobalSchemaContractOperationPredicate{}) +} + +// WorkspaceGlobalSchemaListByServiceCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c SchemaClient) WorkspaceGlobalSchemaListByServiceCompleteMatchingPredicate(ctx context.Context, id WorkspaceId, options WorkspaceGlobalSchemaListByServiceOperationOptions, predicate GlobalSchemaContractOperationPredicate) (result WorkspaceGlobalSchemaListByServiceCompleteResult, err error) { + items := make([]GlobalSchemaContract, 0) + + resp, err := c.WorkspaceGlobalSchemaListByService(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 = WorkspaceGlobalSchemaListByServiceCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/schema/model_globalschemacontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/model_globalschemacontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/schema/model_globalschemacontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/model_globalschemacontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/model_globalschemacontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/model_globalschemacontractproperties.go new file mode 100644 index 000000000000..efd52177b2a3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/model_globalschemacontractproperties.go @@ -0,0 +1,12 @@ +package schema + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GlobalSchemaContractProperties struct { + Description *string `json:"description,omitempty"` + Document *interface{} `json:"document,omitempty"` + ProvisioningState *string `json:"provisioningState,omitempty"` + SchemaType SchemaType `json:"schemaType"` + Value *interface{} `json:"value,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/schema/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/schema/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/schema/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/version.go similarity index 86% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/schema/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/version.go index 57e9da5514de..84d812dcc10c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/schema/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/version.go @@ -5,7 +5,7 @@ import "fmt" // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2022-08-01" +const defaultApiVersion = "2023-05-01-preview" func userAgent() string { return fmt.Sprintf("hashicorp/go-azure-sdk/schema/%s", defaultApiVersion) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signinsettings/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signinsettings/README.md similarity index 92% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signinsettings/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signinsettings/README.md index 941f48319440..f7f64c513c1c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signinsettings/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signinsettings/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signinsettings` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signinsettings` Documentation -The `signinsettings` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2022-08-01`). +The `signinsettings` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2023-05-01-preview`). 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/apimanagement/2022-08-01/signinsettings" +import "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signinsettings" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signinsettings/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signinsettings/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signinsettings/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signinsettings/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signinsettings/id_service.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signinsettings/id_service.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signinsettings/id_service.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signinsettings/id_service.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signinsettings/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signinsettings/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signinsettings/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signinsettings/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signinsettings/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signinsettings/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signinsettings/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signinsettings/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signinsettings/method_getentitytag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signinsettings/method_getentitytag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signinsettings/method_getentitytag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signinsettings/method_getentitytag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signinsettings/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signinsettings/method_update.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signinsettings/method_update.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signinsettings/method_update.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signinsettings/model_portalsigninsettingproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signinsettings/model_portalsigninsettingproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signinsettings/model_portalsigninsettingproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signinsettings/model_portalsigninsettingproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signinsettings/model_portalsigninsettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signinsettings/model_portalsigninsettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signinsettings/model_portalsigninsettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signinsettings/model_portalsigninsettings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signinsettings/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signinsettings/version.go similarity index 86% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signinsettings/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signinsettings/version.go index 1fbb51790498..599b7b7abf64 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signinsettings/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signinsettings/version.go @@ -5,7 +5,7 @@ import "fmt" // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2022-08-01" +const defaultApiVersion = "2023-05-01-preview" func userAgent() string { return fmt.Sprintf("hashicorp/go-azure-sdk/signinsettings/%s", defaultApiVersion) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signupsettings/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signupsettings/README.md similarity index 92% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signupsettings/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signupsettings/README.md index 07fbd7362af5..e4c8eb9ed7e9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signupsettings/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signupsettings/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signupsettings` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signupsettings` Documentation -The `signupsettings` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2022-08-01`). +The `signupsettings` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2023-05-01-preview`). 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/apimanagement/2022-08-01/signupsettings" +import "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signupsettings" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signupsettings/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signupsettings/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signupsettings/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signupsettings/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signupsettings/id_service.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signupsettings/id_service.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signupsettings/id_service.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signupsettings/id_service.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signupsettings/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signupsettings/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signupsettings/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signupsettings/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signupsettings/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signupsettings/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signupsettings/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signupsettings/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signupsettings/method_getentitytag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signupsettings/method_getentitytag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signupsettings/method_getentitytag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signupsettings/method_getentitytag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signupsettings/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signupsettings/method_update.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signupsettings/method_update.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signupsettings/method_update.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signupsettings/model_portalsignupsettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signupsettings/model_portalsignupsettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signupsettings/model_portalsignupsettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signupsettings/model_portalsignupsettings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signupsettings/model_portalsignupsettingsproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signupsettings/model_portalsignupsettingsproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signupsettings/model_portalsignupsettingsproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signupsettings/model_portalsignupsettingsproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signupsettings/model_termsofserviceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signupsettings/model_termsofserviceproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signupsettings/model_termsofserviceproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signupsettings/model_termsofserviceproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signupsettings/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signupsettings/version.go similarity index 86% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signupsettings/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signupsettings/version.go index fc08690bf0ce..48d070962862 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signupsettings/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signupsettings/version.go @@ -5,7 +5,7 @@ import "fmt" // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2022-08-01" +const defaultApiVersion = "2023-05-01-preview" func userAgent() string { return fmt.Sprintf("hashicorp/go-azure-sdk/signupsettings/%s", defaultApiVersion) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/README.md similarity index 50% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/README.md index 6c397fba7b56..bfa4223ac161 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription` Documentation -The `subscription` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2022-08-01`). +The `subscription` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2023-05-01-preview`). 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/apimanagement/2022-08-01/subscription" +import "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription" ``` @@ -189,3 +189,158 @@ if model := read.Model; model != nil { // do something with the model/response object } ``` + + +### Example Usage: `SubscriptionClient.WorkspaceSubscriptionCreateOrUpdate` + +```go +ctx := context.TODO() +id := subscription.NewWorkspaceSubscriptions2ID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "subscriptionValue") + +payload := subscription.SubscriptionCreateParameters{ + // ... +} + + +read, err := client.WorkspaceSubscriptionCreateOrUpdate(ctx, id, payload, subscription.DefaultWorkspaceSubscriptionCreateOrUpdateOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `SubscriptionClient.WorkspaceSubscriptionDelete` + +```go +ctx := context.TODO() +id := subscription.NewWorkspaceSubscriptions2ID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "subscriptionValue") + +read, err := client.WorkspaceSubscriptionDelete(ctx, id, subscription.DefaultWorkspaceSubscriptionDeleteOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `SubscriptionClient.WorkspaceSubscriptionGet` + +```go +ctx := context.TODO() +id := subscription.NewWorkspaceSubscriptions2ID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "subscriptionValue") + +read, err := client.WorkspaceSubscriptionGet(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `SubscriptionClient.WorkspaceSubscriptionGetEntityTag` + +```go +ctx := context.TODO() +id := subscription.NewWorkspaceSubscriptions2ID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "subscriptionValue") + +read, err := client.WorkspaceSubscriptionGetEntityTag(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `SubscriptionClient.WorkspaceSubscriptionList` + +```go +ctx := context.TODO() +id := subscription.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue") + +// alternatively `client.WorkspaceSubscriptionList(ctx, id, subscription.DefaultWorkspaceSubscriptionListOperationOptions())` can be used to do batched pagination +items, err := client.WorkspaceSubscriptionListComplete(ctx, id, subscription.DefaultWorkspaceSubscriptionListOperationOptions()) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `SubscriptionClient.WorkspaceSubscriptionListSecrets` + +```go +ctx := context.TODO() +id := subscription.NewWorkspaceSubscriptions2ID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "subscriptionValue") + +read, err := client.WorkspaceSubscriptionListSecrets(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `SubscriptionClient.WorkspaceSubscriptionRegeneratePrimaryKey` + +```go +ctx := context.TODO() +id := subscription.NewWorkspaceSubscriptions2ID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "subscriptionValue") + +read, err := client.WorkspaceSubscriptionRegeneratePrimaryKey(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `SubscriptionClient.WorkspaceSubscriptionRegenerateSecondaryKey` + +```go +ctx := context.TODO() +id := subscription.NewWorkspaceSubscriptions2ID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "subscriptionValue") + +read, err := client.WorkspaceSubscriptionRegenerateSecondaryKey(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `SubscriptionClient.WorkspaceSubscriptionUpdate` + +```go +ctx := context.TODO() +id := subscription.NewWorkspaceSubscriptions2ID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "subscriptionValue") + +payload := subscription.SubscriptionUpdateParameters{ + // ... +} + + +read, err := client.WorkspaceSubscriptionUpdate(ctx, id, payload, subscription.DefaultWorkspaceSubscriptionUpdateOperationOptions()) +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/apimanagement/2022-08-01/subscription/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription/id_service.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/id_service.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription/id_service.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/id_service.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription/id_subscriptions2.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/id_subscriptions2.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription/id_subscriptions2.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/id_subscriptions2.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription/id_usersubscriptions2.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/id_usersubscriptions2.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription/id_usersubscriptions2.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/id_usersubscriptions2.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/id_workspace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/id_workspace.go new file mode 100644 index 000000000000..f2e1bd584a2e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/id_workspace.go @@ -0,0 +1,139 @@ +package subscription + +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(&WorkspaceId{}) +} + +var _ resourceids.ResourceId = &WorkspaceId{} + +// WorkspaceId is a struct representing the Resource ID for a Workspace +type WorkspaceId struct { + SubscriptionId string + ResourceGroupName string + ServiceName string + WorkspaceId string +} + +// NewWorkspaceID returns a new WorkspaceId struct +func NewWorkspaceID(subscriptionId string, resourceGroupName string, serviceName string, workspaceId string) WorkspaceId { + return WorkspaceId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + ServiceName: serviceName, + WorkspaceId: workspaceId, + } +} + +// ParseWorkspaceID parses 'input' into a WorkspaceId +func ParseWorkspaceID(input string) (*WorkspaceId, error) { + parser := resourceids.NewParserFromResourceIdType(&WorkspaceId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := WorkspaceId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseWorkspaceIDInsensitively parses 'input' case-insensitively into a WorkspaceId +// note: this method should only be used for API response data and not user input +func ParseWorkspaceIDInsensitively(input string) (*WorkspaceId, error) { + parser := resourceids.NewParserFromResourceIdType(&WorkspaceId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := WorkspaceId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *WorkspaceId) 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.ServiceName, ok = input.Parsed["serviceName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "serviceName", input) + } + + if id.WorkspaceId, ok = input.Parsed["workspaceId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "workspaceId", input) + } + + return nil +} + +// ValidateWorkspaceID checks that 'input' can be parsed as a Workspace ID +func ValidateWorkspaceID(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 := ParseWorkspaceID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Workspace ID +func (id WorkspaceId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.ApiManagement/service/%s/workspaces/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.ServiceName, id.WorkspaceId) +} + +// Segments returns a slice of Resource ID Segments which comprise this Workspace ID +func (id WorkspaceId) 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("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), + resourceids.StaticSegment("staticService", "service", "service"), + resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), + resourceids.UserSpecifiedSegment("workspaceId", "workspaceIdValue"), + } +} + +// String returns a human-readable description of this Workspace ID +func (id WorkspaceId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Service Name: %q", id.ServiceName), + fmt.Sprintf("Workspace: %q", id.WorkspaceId), + } + return fmt.Sprintf("Workspace (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/id_workspacesubscriptions2.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/id_workspacesubscriptions2.go new file mode 100644 index 000000000000..5ec25c56a27f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/id_workspacesubscriptions2.go @@ -0,0 +1,148 @@ +package subscription + +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(&WorkspaceSubscriptions2Id{}) +} + +var _ resourceids.ResourceId = &WorkspaceSubscriptions2Id{} + +// WorkspaceSubscriptions2Id is a struct representing the Resource ID for a Workspace Subscriptions 2 +type WorkspaceSubscriptions2Id struct { + SubscriptionId string + ResourceGroupName string + ServiceName string + WorkspaceId string + SubscriptionName string +} + +// NewWorkspaceSubscriptions2ID returns a new WorkspaceSubscriptions2Id struct +func NewWorkspaceSubscriptions2ID(subscriptionId string, resourceGroupName string, serviceName string, workspaceId string, subscriptionName string) WorkspaceSubscriptions2Id { + return WorkspaceSubscriptions2Id{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + ServiceName: serviceName, + WorkspaceId: workspaceId, + SubscriptionName: subscriptionName, + } +} + +// ParseWorkspaceSubscriptions2ID parses 'input' into a WorkspaceSubscriptions2Id +func ParseWorkspaceSubscriptions2ID(input string) (*WorkspaceSubscriptions2Id, error) { + parser := resourceids.NewParserFromResourceIdType(&WorkspaceSubscriptions2Id{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := WorkspaceSubscriptions2Id{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseWorkspaceSubscriptions2IDInsensitively parses 'input' case-insensitively into a WorkspaceSubscriptions2Id +// note: this method should only be used for API response data and not user input +func ParseWorkspaceSubscriptions2IDInsensitively(input string) (*WorkspaceSubscriptions2Id, error) { + parser := resourceids.NewParserFromResourceIdType(&WorkspaceSubscriptions2Id{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := WorkspaceSubscriptions2Id{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *WorkspaceSubscriptions2Id) 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.ServiceName, ok = input.Parsed["serviceName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "serviceName", input) + } + + if id.WorkspaceId, ok = input.Parsed["workspaceId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "workspaceId", input) + } + + if id.SubscriptionName, ok = input.Parsed["subscriptionName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionName", input) + } + + return nil +} + +// ValidateWorkspaceSubscriptions2ID checks that 'input' can be parsed as a Workspace Subscriptions 2 ID +func ValidateWorkspaceSubscriptions2ID(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 := ParseWorkspaceSubscriptions2ID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Workspace Subscriptions 2 ID +func (id WorkspaceSubscriptions2Id) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.ApiManagement/service/%s/workspaces/%s/subscriptions/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.ServiceName, id.WorkspaceId, id.SubscriptionName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Workspace Subscriptions 2 ID +func (id WorkspaceSubscriptions2Id) 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("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), + resourceids.StaticSegment("staticService", "service", "service"), + resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), + resourceids.UserSpecifiedSegment("workspaceId", "workspaceIdValue"), + resourceids.StaticSegment("staticSubscriptions2", "subscriptions", "subscriptions"), + resourceids.UserSpecifiedSegment("subscriptionName", "subscriptionValue"), + } +} + +// String returns a human-readable description of this Workspace Subscriptions 2 ID +func (id WorkspaceSubscriptions2Id) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Service Name: %q", id.ServiceName), + fmt.Sprintf("Workspace: %q", id.WorkspaceId), + fmt.Sprintf("Subscription Name: %q", id.SubscriptionName), + } + return fmt.Sprintf("Workspace Subscriptions 2 (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription/method_getentitytag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/method_getentitytag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription/method_getentitytag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/method_getentitytag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription/method_listsecrets.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/method_listsecrets.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription/method_listsecrets.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/method_listsecrets.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription/method_regenerateprimarykey.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/method_regenerateprimarykey.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription/method_regenerateprimarykey.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/method_regenerateprimarykey.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription/method_regeneratesecondarykey.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/method_regeneratesecondarykey.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription/method_regeneratesecondarykey.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/method_regeneratesecondarykey.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/method_update.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription/method_update.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/method_update.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription/method_usersubscriptionget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/method_usersubscriptionget.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription/method_usersubscriptionget.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/method_usersubscriptionget.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/method_workspacesubscriptioncreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/method_workspacesubscriptioncreateorupdate.go new file mode 100644 index 000000000000..9c4c3b06ccb1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/method_workspacesubscriptioncreateorupdate.go @@ -0,0 +1,95 @@ +package subscription + +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 WorkspaceSubscriptionCreateOrUpdateOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *SubscriptionContract +} + +type WorkspaceSubscriptionCreateOrUpdateOperationOptions struct { + AppType *AppType + IfMatch *string + Notify *bool +} + +func DefaultWorkspaceSubscriptionCreateOrUpdateOperationOptions() WorkspaceSubscriptionCreateOrUpdateOperationOptions { + return WorkspaceSubscriptionCreateOrUpdateOperationOptions{} +} + +func (o WorkspaceSubscriptionCreateOrUpdateOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + if o.IfMatch != nil { + out.Append("If-Match", fmt.Sprintf("%v", *o.IfMatch)) + } + return &out +} + +func (o WorkspaceSubscriptionCreateOrUpdateOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + return &out +} + +func (o WorkspaceSubscriptionCreateOrUpdateOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.AppType != nil { + out.Append("appType", fmt.Sprintf("%v", *o.AppType)) + } + if o.Notify != nil { + out.Append("notify", fmt.Sprintf("%v", *o.Notify)) + } + return &out +} + +// WorkspaceSubscriptionCreateOrUpdate ... +func (c SubscriptionClient) WorkspaceSubscriptionCreateOrUpdate(ctx context.Context, id WorkspaceSubscriptions2Id, input SubscriptionCreateParameters, options WorkspaceSubscriptionCreateOrUpdateOperationOptions) (result WorkspaceSubscriptionCreateOrUpdateOperationResponse, 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 SubscriptionContract + 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/apimanagement/2023-05-01-preview/subscription/method_workspacesubscriptiondelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/method_workspacesubscriptiondelete.go new file mode 100644 index 000000000000..ae93f99c9799 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/method_workspacesubscriptiondelete.go @@ -0,0 +1,76 @@ +package subscription + +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 WorkspaceSubscriptionDeleteOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +type WorkspaceSubscriptionDeleteOperationOptions struct { + IfMatch *string +} + +func DefaultWorkspaceSubscriptionDeleteOperationOptions() WorkspaceSubscriptionDeleteOperationOptions { + return WorkspaceSubscriptionDeleteOperationOptions{} +} + +func (o WorkspaceSubscriptionDeleteOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + if o.IfMatch != nil { + out.Append("If-Match", fmt.Sprintf("%v", *o.IfMatch)) + } + return &out +} + +func (o WorkspaceSubscriptionDeleteOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + return &out +} + +func (o WorkspaceSubscriptionDeleteOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + + return &out +} + +// WorkspaceSubscriptionDelete ... +func (c SubscriptionClient) WorkspaceSubscriptionDelete(ctx context.Context, id WorkspaceSubscriptions2Id, options WorkspaceSubscriptionDeleteOperationOptions) (result WorkspaceSubscriptionDeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + 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 + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/method_workspacesubscriptionget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/method_workspacesubscriptionget.go new file mode 100644 index 000000000000..37ea5ebe5166 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/method_workspacesubscriptionget.go @@ -0,0 +1,54 @@ +package subscription + +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 WorkspaceSubscriptionGetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *SubscriptionContract +} + +// WorkspaceSubscriptionGet ... +func (c SubscriptionClient) WorkspaceSubscriptionGet(ctx context.Context, id WorkspaceSubscriptions2Id) (result WorkspaceSubscriptionGetOperationResponse, 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 SubscriptionContract + 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/apimanagement/2023-05-01-preview/subscription/method_workspacesubscriptiongetentitytag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/method_workspacesubscriptiongetentitytag.go new file mode 100644 index 000000000000..4eb6ac80a13d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/method_workspacesubscriptiongetentitytag.go @@ -0,0 +1,46 @@ +package subscription + +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 WorkspaceSubscriptionGetEntityTagOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// WorkspaceSubscriptionGetEntityTag ... +func (c SubscriptionClient) WorkspaceSubscriptionGetEntityTag(ctx context.Context, id WorkspaceSubscriptions2Id) (result WorkspaceSubscriptionGetEntityTagOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodHead, + 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/apimanagement/2023-05-01-preview/subscription/method_workspacesubscriptionlist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/method_workspacesubscriptionlist.go new file mode 100644 index 000000000000..ae68c7033936 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/method_workspacesubscriptionlist.go @@ -0,0 +1,141 @@ +package subscription + +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 WorkspaceSubscriptionListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]SubscriptionContract +} + +type WorkspaceSubscriptionListCompleteResult struct { + LatestHttpResponse *http.Response + Items []SubscriptionContract +} + +type WorkspaceSubscriptionListOperationOptions struct { + Filter *string + Skip *int64 + Top *int64 +} + +func DefaultWorkspaceSubscriptionListOperationOptions() WorkspaceSubscriptionListOperationOptions { + return WorkspaceSubscriptionListOperationOptions{} +} + +func (o WorkspaceSubscriptionListOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o WorkspaceSubscriptionListOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + return &out +} + +func (o WorkspaceSubscriptionListOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Filter != nil { + out.Append("$filter", fmt.Sprintf("%v", *o.Filter)) + } + if o.Skip != nil { + out.Append("$skip", fmt.Sprintf("%v", *o.Skip)) + } + if o.Top != nil { + out.Append("$top", fmt.Sprintf("%v", *o.Top)) + } + return &out +} + +type WorkspaceSubscriptionListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkspaceSubscriptionListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// WorkspaceSubscriptionList ... +func (c SubscriptionClient) WorkspaceSubscriptionList(ctx context.Context, id WorkspaceId, options WorkspaceSubscriptionListOperationOptions) (result WorkspaceSubscriptionListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + OptionsObject: options, + Pager: &WorkspaceSubscriptionListCustomPager{}, + Path: fmt.Sprintf("%s/subscriptions", 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 *[]SubscriptionContract `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// WorkspaceSubscriptionListComplete retrieves all the results into a single object +func (c SubscriptionClient) WorkspaceSubscriptionListComplete(ctx context.Context, id WorkspaceId, options WorkspaceSubscriptionListOperationOptions) (WorkspaceSubscriptionListCompleteResult, error) { + return c.WorkspaceSubscriptionListCompleteMatchingPredicate(ctx, id, options, SubscriptionContractOperationPredicate{}) +} + +// WorkspaceSubscriptionListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c SubscriptionClient) WorkspaceSubscriptionListCompleteMatchingPredicate(ctx context.Context, id WorkspaceId, options WorkspaceSubscriptionListOperationOptions, predicate SubscriptionContractOperationPredicate) (result WorkspaceSubscriptionListCompleteResult, err error) { + items := make([]SubscriptionContract, 0) + + resp, err := c.WorkspaceSubscriptionList(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 = WorkspaceSubscriptionListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/method_workspacesubscriptionlistsecrets.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/method_workspacesubscriptionlistsecrets.go new file mode 100644 index 000000000000..5aaf63656bd7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/method_workspacesubscriptionlistsecrets.go @@ -0,0 +1,55 @@ +package subscription + +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 WorkspaceSubscriptionListSecretsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *SubscriptionKeysContract +} + +// WorkspaceSubscriptionListSecrets ... +func (c SubscriptionClient) WorkspaceSubscriptionListSecrets(ctx context.Context, id WorkspaceSubscriptions2Id) (result WorkspaceSubscriptionListSecretsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/listSecrets", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + 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 SubscriptionKeysContract + 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/apimanagement/2023-05-01-preview/subscription/method_workspacesubscriptionregenerateprimarykey.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/method_workspacesubscriptionregenerateprimarykey.go new file mode 100644 index 000000000000..84d769c707e3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/method_workspacesubscriptionregenerateprimarykey.go @@ -0,0 +1,47 @@ +package subscription + +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 WorkspaceSubscriptionRegeneratePrimaryKeyOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// WorkspaceSubscriptionRegeneratePrimaryKey ... +func (c SubscriptionClient) WorkspaceSubscriptionRegeneratePrimaryKey(ctx context.Context, id WorkspaceSubscriptions2Id) (result WorkspaceSubscriptionRegeneratePrimaryKeyOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusNoContent, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/regeneratePrimaryKey", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + 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/apimanagement/2023-05-01-preview/subscription/method_workspacesubscriptionregeneratesecondarykey.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/method_workspacesubscriptionregeneratesecondarykey.go new file mode 100644 index 000000000000..553959c46368 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/method_workspacesubscriptionregeneratesecondarykey.go @@ -0,0 +1,47 @@ +package subscription + +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 WorkspaceSubscriptionRegenerateSecondaryKeyOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// WorkspaceSubscriptionRegenerateSecondaryKey ... +func (c SubscriptionClient) WorkspaceSubscriptionRegenerateSecondaryKey(ctx context.Context, id WorkspaceSubscriptions2Id) (result WorkspaceSubscriptionRegenerateSecondaryKeyOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusNoContent, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/regenerateSecondaryKey", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + 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/apimanagement/2023-05-01-preview/subscription/method_workspacesubscriptionupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/method_workspacesubscriptionupdate.go new file mode 100644 index 000000000000..e8866e97051e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/method_workspacesubscriptionupdate.go @@ -0,0 +1,94 @@ +package subscription + +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 WorkspaceSubscriptionUpdateOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *SubscriptionContract +} + +type WorkspaceSubscriptionUpdateOperationOptions struct { + AppType *AppType + IfMatch *string + Notify *bool +} + +func DefaultWorkspaceSubscriptionUpdateOperationOptions() WorkspaceSubscriptionUpdateOperationOptions { + return WorkspaceSubscriptionUpdateOperationOptions{} +} + +func (o WorkspaceSubscriptionUpdateOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + if o.IfMatch != nil { + out.Append("If-Match", fmt.Sprintf("%v", *o.IfMatch)) + } + return &out +} + +func (o WorkspaceSubscriptionUpdateOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + return &out +} + +func (o WorkspaceSubscriptionUpdateOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.AppType != nil { + out.Append("appType", fmt.Sprintf("%v", *o.AppType)) + } + if o.Notify != nil { + out.Append("notify", fmt.Sprintf("%v", *o.Notify)) + } + return &out +} + +// WorkspaceSubscriptionUpdate ... +func (c SubscriptionClient) WorkspaceSubscriptionUpdate(ctx context.Context, id WorkspaceSubscriptions2Id, input SubscriptionUpdateParameters, options WorkspaceSubscriptionUpdateOperationOptions) (result WorkspaceSubscriptionUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPatch, + 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 SubscriptionContract + 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/apimanagement/2022-08-01/subscription/model_subscriptioncontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/model_subscriptioncontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription/model_subscriptioncontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/model_subscriptioncontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription/model_subscriptioncontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/model_subscriptioncontractproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription/model_subscriptioncontractproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/model_subscriptioncontractproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription/model_subscriptioncreateparameterproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/model_subscriptioncreateparameterproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription/model_subscriptioncreateparameterproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/model_subscriptioncreateparameterproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription/model_subscriptioncreateparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/model_subscriptioncreateparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription/model_subscriptioncreateparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/model_subscriptioncreateparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription/model_subscriptionkeyscontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/model_subscriptionkeyscontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription/model_subscriptionkeyscontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/model_subscriptionkeyscontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription/model_subscriptionupdateparameterproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/model_subscriptionupdateparameterproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription/model_subscriptionupdateparameterproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/model_subscriptionupdateparameterproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription/model_subscriptionupdateparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/model_subscriptionupdateparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription/model_subscriptionupdateparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/model_subscriptionupdateparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/version.go similarity index 86% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/version.go index 4767e08d4b9e..5e33254e2251 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/version.go @@ -5,7 +5,7 @@ import "fmt" // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2022-08-01" +const defaultApiVersion = "2023-05-01-preview" func userAgent() string { return fmt.Sprintf("hashicorp/go-azure-sdk/subscription/%s", defaultApiVersion) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tag/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/README.md similarity index 50% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tag/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/README.md index 02a7c8063c19..66863f21c2a8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tag/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tag` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag` Documentation -The `tag` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2022-08-01`). +The `tag` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2023-05-01-preview`). 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/apimanagement/2022-08-01/tag" +import "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag" ``` @@ -125,3 +125,110 @@ if model := read.Model; model != nil { // do something with the model/response object } ``` + + +### Example Usage: `TagClient.WorkspaceTagCreateOrUpdate` + +```go +ctx := context.TODO() +id := tag.NewWorkspaceTagID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "tagIdValue") + +payload := tag.TagCreateUpdateParameters{ + // ... +} + + +read, err := client.WorkspaceTagCreateOrUpdate(ctx, id, payload, tag.DefaultWorkspaceTagCreateOrUpdateOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `TagClient.WorkspaceTagDelete` + +```go +ctx := context.TODO() +id := tag.NewWorkspaceTagID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "tagIdValue") + +read, err := client.WorkspaceTagDelete(ctx, id, tag.DefaultWorkspaceTagDeleteOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `TagClient.WorkspaceTagGet` + +```go +ctx := context.TODO() +id := tag.NewWorkspaceTagID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "tagIdValue") + +read, err := client.WorkspaceTagGet(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `TagClient.WorkspaceTagGetEntityState` + +```go +ctx := context.TODO() +id := tag.NewWorkspaceTagID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "tagIdValue") + +read, err := client.WorkspaceTagGetEntityState(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `TagClient.WorkspaceTagListByService` + +```go +ctx := context.TODO() +id := tag.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue") + +// alternatively `client.WorkspaceTagListByService(ctx, id, tag.DefaultWorkspaceTagListByServiceOperationOptions())` can be used to do batched pagination +items, err := client.WorkspaceTagListByServiceComplete(ctx, id, tag.DefaultWorkspaceTagListByServiceOperationOptions()) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `TagClient.WorkspaceTagUpdate` + +```go +ctx := context.TODO() +id := tag.NewWorkspaceTagID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "tagIdValue") + +payload := tag.TagCreateUpdateParameters{ + // ... +} + + +read, err := client.WorkspaceTagUpdate(ctx, id, payload, tag.DefaultWorkspaceTagUpdateOperationOptions()) +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/apimanagement/2022-08-01/tag/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tag/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tag/id_service.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/id_service.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tag/id_service.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/id_service.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tag/id_tag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/id_tag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tag/id_tag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/id_tag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/id_workspace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/id_workspace.go new file mode 100644 index 000000000000..3028a0894dc7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/id_workspace.go @@ -0,0 +1,139 @@ +package tag + +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(&WorkspaceId{}) +} + +var _ resourceids.ResourceId = &WorkspaceId{} + +// WorkspaceId is a struct representing the Resource ID for a Workspace +type WorkspaceId struct { + SubscriptionId string + ResourceGroupName string + ServiceName string + WorkspaceId string +} + +// NewWorkspaceID returns a new WorkspaceId struct +func NewWorkspaceID(subscriptionId string, resourceGroupName string, serviceName string, workspaceId string) WorkspaceId { + return WorkspaceId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + ServiceName: serviceName, + WorkspaceId: workspaceId, + } +} + +// ParseWorkspaceID parses 'input' into a WorkspaceId +func ParseWorkspaceID(input string) (*WorkspaceId, error) { + parser := resourceids.NewParserFromResourceIdType(&WorkspaceId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := WorkspaceId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseWorkspaceIDInsensitively parses 'input' case-insensitively into a WorkspaceId +// note: this method should only be used for API response data and not user input +func ParseWorkspaceIDInsensitively(input string) (*WorkspaceId, error) { + parser := resourceids.NewParserFromResourceIdType(&WorkspaceId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := WorkspaceId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *WorkspaceId) 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.ServiceName, ok = input.Parsed["serviceName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "serviceName", input) + } + + if id.WorkspaceId, ok = input.Parsed["workspaceId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "workspaceId", input) + } + + return nil +} + +// ValidateWorkspaceID checks that 'input' can be parsed as a Workspace ID +func ValidateWorkspaceID(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 := ParseWorkspaceID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Workspace ID +func (id WorkspaceId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.ApiManagement/service/%s/workspaces/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.ServiceName, id.WorkspaceId) +} + +// Segments returns a slice of Resource ID Segments which comprise this Workspace ID +func (id WorkspaceId) 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("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), + resourceids.StaticSegment("staticService", "service", "service"), + resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), + resourceids.UserSpecifiedSegment("workspaceId", "workspaceIdValue"), + } +} + +// String returns a human-readable description of this Workspace ID +func (id WorkspaceId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Service Name: %q", id.ServiceName), + fmt.Sprintf("Workspace: %q", id.WorkspaceId), + } + return fmt.Sprintf("Workspace (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/id_workspacetag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/id_workspacetag.go new file mode 100644 index 000000000000..22e3dc2edb3e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/id_workspacetag.go @@ -0,0 +1,148 @@ +package tag + +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(&WorkspaceTagId{}) +} + +var _ resourceids.ResourceId = &WorkspaceTagId{} + +// WorkspaceTagId is a struct representing the Resource ID for a Workspace Tag +type WorkspaceTagId struct { + SubscriptionId string + ResourceGroupName string + ServiceName string + WorkspaceId string + TagId string +} + +// NewWorkspaceTagID returns a new WorkspaceTagId struct +func NewWorkspaceTagID(subscriptionId string, resourceGroupName string, serviceName string, workspaceId string, tagId string) WorkspaceTagId { + return WorkspaceTagId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + ServiceName: serviceName, + WorkspaceId: workspaceId, + TagId: tagId, + } +} + +// ParseWorkspaceTagID parses 'input' into a WorkspaceTagId +func ParseWorkspaceTagID(input string) (*WorkspaceTagId, error) { + parser := resourceids.NewParserFromResourceIdType(&WorkspaceTagId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := WorkspaceTagId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseWorkspaceTagIDInsensitively parses 'input' case-insensitively into a WorkspaceTagId +// note: this method should only be used for API response data and not user input +func ParseWorkspaceTagIDInsensitively(input string) (*WorkspaceTagId, error) { + parser := resourceids.NewParserFromResourceIdType(&WorkspaceTagId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := WorkspaceTagId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *WorkspaceTagId) 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.ServiceName, ok = input.Parsed["serviceName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "serviceName", input) + } + + if id.WorkspaceId, ok = input.Parsed["workspaceId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "workspaceId", input) + } + + if id.TagId, ok = input.Parsed["tagId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "tagId", input) + } + + return nil +} + +// ValidateWorkspaceTagID checks that 'input' can be parsed as a Workspace Tag ID +func ValidateWorkspaceTagID(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 := ParseWorkspaceTagID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Workspace Tag ID +func (id WorkspaceTagId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.ApiManagement/service/%s/workspaces/%s/tags/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.ServiceName, id.WorkspaceId, id.TagId) +} + +// Segments returns a slice of Resource ID Segments which comprise this Workspace Tag ID +func (id WorkspaceTagId) 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("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), + resourceids.StaticSegment("staticService", "service", "service"), + resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), + resourceids.UserSpecifiedSegment("workspaceId", "workspaceIdValue"), + resourceids.StaticSegment("staticTags", "tags", "tags"), + resourceids.UserSpecifiedSegment("tagId", "tagIdValue"), + } +} + +// String returns a human-readable description of this Workspace Tag ID +func (id WorkspaceTagId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Service Name: %q", id.ServiceName), + fmt.Sprintf("Workspace: %q", id.WorkspaceId), + fmt.Sprintf("Tag: %q", id.TagId), + } + return fmt.Sprintf("Workspace Tag (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tag/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tag/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tag/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tag/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tag/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tag/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tag/method_getentitystate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/method_getentitystate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tag/method_getentitystate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/method_getentitystate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tag/method_listbyservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/method_listbyservice.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tag/method_listbyservice.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/method_listbyservice.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tag/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/method_update.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tag/method_update.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/method_update.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/method_workspacetagcreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/method_workspacetagcreateorupdate.go new file mode 100644 index 000000000000..43dd91a03275 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/method_workspacetagcreateorupdate.go @@ -0,0 +1,88 @@ +package tag + +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 WorkspaceTagCreateOrUpdateOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *TagContract +} + +type WorkspaceTagCreateOrUpdateOperationOptions struct { + IfMatch *string +} + +func DefaultWorkspaceTagCreateOrUpdateOperationOptions() WorkspaceTagCreateOrUpdateOperationOptions { + return WorkspaceTagCreateOrUpdateOperationOptions{} +} + +func (o WorkspaceTagCreateOrUpdateOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + if o.IfMatch != nil { + out.Append("If-Match", fmt.Sprintf("%v", *o.IfMatch)) + } + return &out +} + +func (o WorkspaceTagCreateOrUpdateOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + return &out +} + +func (o WorkspaceTagCreateOrUpdateOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + + return &out +} + +// WorkspaceTagCreateOrUpdate ... +func (c TagClient) WorkspaceTagCreateOrUpdate(ctx context.Context, id WorkspaceTagId, input TagCreateUpdateParameters, options WorkspaceTagCreateOrUpdateOperationOptions) (result WorkspaceTagCreateOrUpdateOperationResponse, 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 TagContract + 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/apimanagement/2023-05-01-preview/tag/method_workspacetagdelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/method_workspacetagdelete.go new file mode 100644 index 000000000000..c702a5f54dce --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/method_workspacetagdelete.go @@ -0,0 +1,76 @@ +package tag + +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 WorkspaceTagDeleteOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +type WorkspaceTagDeleteOperationOptions struct { + IfMatch *string +} + +func DefaultWorkspaceTagDeleteOperationOptions() WorkspaceTagDeleteOperationOptions { + return WorkspaceTagDeleteOperationOptions{} +} + +func (o WorkspaceTagDeleteOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + if o.IfMatch != nil { + out.Append("If-Match", fmt.Sprintf("%v", *o.IfMatch)) + } + return &out +} + +func (o WorkspaceTagDeleteOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + return &out +} + +func (o WorkspaceTagDeleteOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + + return &out +} + +// WorkspaceTagDelete ... +func (c TagClient) WorkspaceTagDelete(ctx context.Context, id WorkspaceTagId, options WorkspaceTagDeleteOperationOptions) (result WorkspaceTagDeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + 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 + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/method_workspacetagget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/method_workspacetagget.go new file mode 100644 index 000000000000..70647072c3e8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/method_workspacetagget.go @@ -0,0 +1,54 @@ +package tag + +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 WorkspaceTagGetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *TagContract +} + +// WorkspaceTagGet ... +func (c TagClient) WorkspaceTagGet(ctx context.Context, id WorkspaceTagId) (result WorkspaceTagGetOperationResponse, 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 TagContract + 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/apimanagement/2023-05-01-preview/tag/method_workspacetaggetentitystate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/method_workspacetaggetentitystate.go new file mode 100644 index 000000000000..2d112303f1d7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/method_workspacetaggetentitystate.go @@ -0,0 +1,46 @@ +package tag + +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 WorkspaceTagGetEntityStateOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// WorkspaceTagGetEntityState ... +func (c TagClient) WorkspaceTagGetEntityState(ctx context.Context, id WorkspaceTagId) (result WorkspaceTagGetEntityStateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodHead, + 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/apimanagement/2023-05-01-preview/tag/method_workspacetaglistbyservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/method_workspacetaglistbyservice.go new file mode 100644 index 000000000000..e41c7e2b252a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/method_workspacetaglistbyservice.go @@ -0,0 +1,145 @@ +package tag + +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 WorkspaceTagListByServiceOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]TagContract +} + +type WorkspaceTagListByServiceCompleteResult struct { + LatestHttpResponse *http.Response + Items []TagContract +} + +type WorkspaceTagListByServiceOperationOptions struct { + Filter *string + Scope *string + Skip *int64 + Top *int64 +} + +func DefaultWorkspaceTagListByServiceOperationOptions() WorkspaceTagListByServiceOperationOptions { + return WorkspaceTagListByServiceOperationOptions{} +} + +func (o WorkspaceTagListByServiceOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o WorkspaceTagListByServiceOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + return &out +} + +func (o WorkspaceTagListByServiceOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Filter != nil { + out.Append("$filter", fmt.Sprintf("%v", *o.Filter)) + } + if o.Scope != nil { + out.Append("scope", fmt.Sprintf("%v", *o.Scope)) + } + if o.Skip != nil { + out.Append("$skip", fmt.Sprintf("%v", *o.Skip)) + } + if o.Top != nil { + out.Append("$top", fmt.Sprintf("%v", *o.Top)) + } + return &out +} + +type WorkspaceTagListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkspaceTagListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// WorkspaceTagListByService ... +func (c TagClient) WorkspaceTagListByService(ctx context.Context, id WorkspaceId, options WorkspaceTagListByServiceOperationOptions) (result WorkspaceTagListByServiceOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + OptionsObject: options, + Pager: &WorkspaceTagListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/tags", 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 *[]TagContract `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// WorkspaceTagListByServiceComplete retrieves all the results into a single object +func (c TagClient) WorkspaceTagListByServiceComplete(ctx context.Context, id WorkspaceId, options WorkspaceTagListByServiceOperationOptions) (WorkspaceTagListByServiceCompleteResult, error) { + return c.WorkspaceTagListByServiceCompleteMatchingPredicate(ctx, id, options, TagContractOperationPredicate{}) +} + +// WorkspaceTagListByServiceCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c TagClient) WorkspaceTagListByServiceCompleteMatchingPredicate(ctx context.Context, id WorkspaceId, options WorkspaceTagListByServiceOperationOptions, predicate TagContractOperationPredicate) (result WorkspaceTagListByServiceCompleteResult, err error) { + items := make([]TagContract, 0) + + resp, err := c.WorkspaceTagListByService(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 = WorkspaceTagListByServiceCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/method_workspacetagupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/method_workspacetagupdate.go new file mode 100644 index 000000000000..0d23c5923a8c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/method_workspacetagupdate.go @@ -0,0 +1,87 @@ +package tag + +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 WorkspaceTagUpdateOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *TagContract +} + +type WorkspaceTagUpdateOperationOptions struct { + IfMatch *string +} + +func DefaultWorkspaceTagUpdateOperationOptions() WorkspaceTagUpdateOperationOptions { + return WorkspaceTagUpdateOperationOptions{} +} + +func (o WorkspaceTagUpdateOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + if o.IfMatch != nil { + out.Append("If-Match", fmt.Sprintf("%v", *o.IfMatch)) + } + return &out +} + +func (o WorkspaceTagUpdateOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + return &out +} + +func (o WorkspaceTagUpdateOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + + return &out +} + +// WorkspaceTagUpdate ... +func (c TagClient) WorkspaceTagUpdate(ctx context.Context, id WorkspaceTagId, input TagCreateUpdateParameters, options WorkspaceTagUpdateOperationOptions) (result WorkspaceTagUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPatch, + 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 TagContract + 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/apimanagement/2022-08-01/tag/model_tagcontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/model_tagcontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tag/model_tagcontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/model_tagcontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tag/model_tagcontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/model_tagcontractproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tag/model_tagcontractproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/model_tagcontractproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tag/model_tagcreateupdateparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/model_tagcreateupdateparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tag/model_tagcreateupdateparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/model_tagcreateupdateparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tag/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tag/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tag/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/version.go similarity index 85% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tag/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/version.go index 4963af1efd33..ff49832af468 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tag/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/version.go @@ -5,7 +5,7 @@ import "fmt" // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2022-08-01" +const defaultApiVersion = "2023-05-01-preview" func userAgent() string { return fmt.Sprintf("hashicorp/go-azure-sdk/tag/%s", defaultApiVersion) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tenantaccess/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tenantaccess/README.md similarity index 95% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tenantaccess/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tenantaccess/README.md index f00d75f29001..5c4e5a9ac9cf 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tenantaccess/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tenantaccess/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tenantaccess` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tenantaccess` Documentation -The `tenantaccess` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2022-08-01`). +The `tenantaccess` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2023-05-01-preview`). 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/apimanagement/2022-08-01/tenantaccess" +import "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tenantaccess" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tenantaccess/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tenantaccess/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tenantaccess/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tenantaccess/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tenantaccess/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tenantaccess/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tenantaccess/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tenantaccess/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tenantaccess/id_access.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tenantaccess/id_access.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tenantaccess/id_access.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tenantaccess/id_access.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tenantaccess/id_service.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tenantaccess/id_service.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tenantaccess/id_service.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tenantaccess/id_service.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tenantaccess/method_create.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tenantaccess/method_create.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tenantaccess/method_create.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tenantaccess/method_create.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tenantaccess/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tenantaccess/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tenantaccess/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tenantaccess/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tenantaccess/method_getentitytag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tenantaccess/method_getentitytag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tenantaccess/method_getentitytag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tenantaccess/method_getentitytag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tenantaccess/method_listbyservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tenantaccess/method_listbyservice.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tenantaccess/method_listbyservice.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tenantaccess/method_listbyservice.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tenantaccess/method_listsecrets.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tenantaccess/method_listsecrets.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tenantaccess/method_listsecrets.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tenantaccess/method_listsecrets.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tenantaccess/method_regenerateprimarykey.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tenantaccess/method_regenerateprimarykey.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tenantaccess/method_regenerateprimarykey.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tenantaccess/method_regenerateprimarykey.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tenantaccess/method_regeneratesecondarykey.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tenantaccess/method_regeneratesecondarykey.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tenantaccess/method_regeneratesecondarykey.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tenantaccess/method_regeneratesecondarykey.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tenantaccess/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tenantaccess/method_update.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tenantaccess/method_update.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tenantaccess/method_update.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tenantaccess/model_accessinformationcontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tenantaccess/model_accessinformationcontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tenantaccess/model_accessinformationcontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tenantaccess/model_accessinformationcontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tenantaccess/model_accessinformationcontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tenantaccess/model_accessinformationcontractproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tenantaccess/model_accessinformationcontractproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tenantaccess/model_accessinformationcontractproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tenantaccess/model_accessinformationcreateparameterproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tenantaccess/model_accessinformationcreateparameterproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tenantaccess/model_accessinformationcreateparameterproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tenantaccess/model_accessinformationcreateparameterproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tenantaccess/model_accessinformationcreateparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tenantaccess/model_accessinformationcreateparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tenantaccess/model_accessinformationcreateparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tenantaccess/model_accessinformationcreateparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tenantaccess/model_accessinformationsecretscontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tenantaccess/model_accessinformationsecretscontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tenantaccess/model_accessinformationsecretscontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tenantaccess/model_accessinformationsecretscontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tenantaccess/model_accessinformationupdateparameterproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tenantaccess/model_accessinformationupdateparameterproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tenantaccess/model_accessinformationupdateparameterproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tenantaccess/model_accessinformationupdateparameterproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tenantaccess/model_accessinformationupdateparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tenantaccess/model_accessinformationupdateparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tenantaccess/model_accessinformationupdateparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tenantaccess/model_accessinformationupdateparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tenantaccess/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tenantaccess/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tenantaccess/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tenantaccess/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tenantaccess/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tenantaccess/version.go similarity index 86% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tenantaccess/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tenantaccess/version.go index 2d944dfa3c58..e9f9897030cc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tenantaccess/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tenantaccess/version.go @@ -5,7 +5,7 @@ import "fmt" // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2022-08-01" +const defaultApiVersion = "2023-05-01-preview" func userAgent() string { return fmt.Sprintf("hashicorp/go-azure-sdk/tenantaccess/%s", defaultApiVersion) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/user/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/user/README.md similarity index 90% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/user/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/user/README.md index ad422c016eb7..d476f8387935 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/user/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/user/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/user` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/user` Documentation -The `user` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2022-08-01`). +The `user` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2023-05-01-preview`). 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/apimanagement/2022-08-01/user" +import "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/user" ``` @@ -47,13 +47,9 @@ if model := read.Model; model != nil { ctx := context.TODO() id := user.NewUserID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "userIdValue") -read, err := client.Delete(ctx, id, user.DefaultDeleteOperationOptions()) -if err != nil { +if err := client.DeleteThenPoll(ctx, id, user.DefaultDeleteOperationOptions()); 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/apimanagement/2022-08-01/user/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/user/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/user/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/user/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/user/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/user/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/user/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/user/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/user/id_service.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/user/id_service.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/user/id_service.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/user/id_service.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/user/id_user.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/user/id_user.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/user/id_user.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/user/id_user.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/user/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/user/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/user/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/user/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/user/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/user/method_delete.go similarity index 73% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/user/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/user/method_delete.go index b5b2112ac40d..e5d13dba4420 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/user/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/user/method_delete.go @@ -6,6 +6,8 @@ import ( "net/http" "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" "github.com/hashicorp/go-azure-sdk/sdk/odata" ) @@ -13,6 +15,7 @@ import ( // 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 } @@ -60,8 +63,8 @@ func (c UserClient) Delete(ctx context.Context, id UserId, options DeleteOperati opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, http.StatusNoContent, - http.StatusOK, }, HttpMethod: http.MethodDelete, OptionsObject: options, @@ -83,5 +86,24 @@ func (c UserClient) Delete(ctx context.Context, id UserId, options DeleteOperati 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 UserClient) DeleteThenPoll(ctx context.Context, id UserId, 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/apimanagement/2022-08-01/user/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/user/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/user/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/user/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/user/method_getentitytag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/user/method_getentitytag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/user/method_getentitytag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/user/method_getentitytag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/user/method_listbyservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/user/method_listbyservice.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/user/method_listbyservice.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/user/method_listbyservice.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/user/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/user/method_update.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/user/method_update.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/user/method_update.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/user/model_groupcontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/user/model_groupcontractproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/user/model_groupcontractproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/user/model_groupcontractproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/user/model_usercontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/user/model_usercontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/user/model_usercontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/user/model_usercontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/user/model_usercontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/user/model_usercontractproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/user/model_usercontractproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/user/model_usercontractproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/user/model_usercreateparameterproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/user/model_usercreateparameterproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/user/model_usercreateparameterproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/user/model_usercreateparameterproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/user/model_usercreateparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/user/model_usercreateparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/user/model_usercreateparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/user/model_usercreateparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/user/model_useridentitycontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/user/model_useridentitycontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/user/model_useridentitycontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/user/model_useridentitycontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/user/model_userupdateparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/user/model_userupdateparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/user/model_userupdateparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/user/model_userupdateparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/user/model_userupdateparametersproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/user/model_userupdateparametersproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/user/model_userupdateparametersproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/user/model_userupdateparametersproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/user/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/user/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/user/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/user/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/user/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/user/version.go similarity index 85% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/user/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/user/version.go index 7a67a5894cd3..d6d166b4c7fd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/user/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/user/version.go @@ -5,7 +5,7 @@ import "fmt" // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2022-08-01" +const defaultApiVersion = "2023-05-01-preview" func userAgent() string { return fmt.Sprintf("hashicorp/go-azure-sdk/user/%s", defaultApiVersion) diff --git a/vendor/modules.txt b/vendor/modules.txt index a5d4356b04cf..730b9e08fe1f 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -166,53 +166,53 @@ github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2023-03-01/p github.com/hashicorp/go-azure-sdk/resource-manager/analysisservices/2017-08-01 github.com/hashicorp/go-azure-sdk/resource-manager/analysisservices/2017-08-01/analysisservices github.com/hashicorp/go-azure-sdk/resource-manager/analysisservices/2017-08-01/servers -github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api -github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apidiagnostic -github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice -github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperation -github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationpolicy -github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationtag -github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apipolicy -github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apirelease -github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apischema -github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitag -github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitagdescription -github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apiversionset -github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apiversionsets -github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/authorizationserver -github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/backend -github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/cache -github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/certificate -github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/delegationsettings -github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/deletedservice -github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/diagnostic -github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/emailtemplates -github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gateway -github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayapi -github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewaycertificateauthority -github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayhostnameconfiguration -github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/group -github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/groupuser -github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/identityprovider -github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/logger -github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/namedvalue -github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientemail -github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientuser -github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/openidconnectprovider -github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policy -github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policyfragment -github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/product -github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productapi -github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productgroup -github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productpolicy -github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/producttag -github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/schema -github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signinsettings -github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signupsettings -github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription -github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tag -github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tenantaccess -github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/user +github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api +github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic +github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice +github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation +github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy +github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationtag +github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apipolicy +github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease +github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema +github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitag +github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitagdescription +github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset +github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionsets +github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/authorizationserver +github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend +github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/cache +github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/certificate +github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/delegationsettings +github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/deletedservice +github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/diagnostic +github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/emailtemplates +github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gateway +github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi +github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewaycertificateauthority +github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayhostnameconfiguration +github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group +github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser +github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider +github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/logger +github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue +github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail +github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser +github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/openidconnectprovider +github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policy +github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment +github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product +github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productapi +github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productgroup +github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productpolicy +github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/producttag +github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema +github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signinsettings +github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signupsettings +github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription +github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag +github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tenantaccess +github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/user github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/configurationstores github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/deletedconfigurationstores github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/operations From 4e28cb4fdc91758b6dc45e347e1353888be968c8 Mon Sep 17 00:00:00 2001 From: Zsolt Fejer Date: Wed, 24 Jul 2024 09:57:17 +0100 Subject: [PATCH 2/6] finish --- .../apimanagement/api_management_resource.go | 26 +- .../api_management_resource_test.go | 38 +++ website/docs/r/api_management.html.markdown | 238 +++++++++--------- 3 files changed, 170 insertions(+), 132 deletions(-) diff --git a/internal/services/apimanagement/api_management_resource.go b/internal/services/apimanagement/api_management_resource.go index 0d34c87abbaf..f37ed230d148 100644 --- a/internal/services/apimanagement/api_management_resource.go +++ b/internal/services/apimanagement/api_management_resource.go @@ -904,10 +904,10 @@ func resourceApiManagementServiceCreate(d *pluginsdk.ResourceData, meta interfac } signInSettingsRaw := d.Get("sign_in").([]interface{}) - if sku.Name == apimanagementservice.SkuTypeConsumption && len(signInSettingsRaw) > 0 { - return fmt.Errorf("`sign_in` is not support for sku tier `Consumption`") + if (sku.Name == apimanagementservice.SkuTypeConsumption || sku.Name == apimanagementservice.SkuTypeBasicVTwo || sku.Name == apimanagementservice.SkuTypeStandardVTwo) && len(signInSettingsRaw) > 0 { + return fmt.Errorf("`sign_in` is not support for sku tier `Consumption`, `BasicV2` or `StandardV2`") } - if sku.Name != apimanagementservice.SkuTypeConsumption { + if sku.Name != apimanagementservice.SkuTypeConsumption && sku.Name != apimanagementservice.SkuTypeBasicVTwo && sku.Name != apimanagementservice.SkuTypeStandardVTwo { signInSettingServiceId := signinsettings.NewServiceID(subscriptionId, id.ResourceGroupName, id.ServiceName) signInSettings := expandApiManagementSignInSettings(signInSettingsRaw) signInClient := meta.(*clients.Client).ApiManagement.SignInClient @@ -917,10 +917,10 @@ func resourceApiManagementServiceCreate(d *pluginsdk.ResourceData, meta interfac } signUpSettingsRaw := d.Get("sign_up").([]interface{}) - if sku.Name == apimanagementservice.SkuTypeConsumption && len(signUpSettingsRaw) > 0 { - return fmt.Errorf("`sign_up` is not support for sku tier `Consumption`") + if (sku.Name == apimanagementservice.SkuTypeConsumption || sku.Name == apimanagementservice.SkuTypeBasicVTwo || sku.Name == apimanagementservice.SkuTypeStandardVTwo) && len(signUpSettingsRaw) > 0 { + return fmt.Errorf("`sign_up` is not support for sku tier `Consumption`, `BasicV2` or `StandardV2`") } - if sku.Name != apimanagementservice.SkuTypeConsumption { + if sku.Name != apimanagementservice.SkuTypeConsumption && sku.Name != apimanagementservice.SkuTypeBasicVTwo && sku.Name != apimanagementservice.SkuTypeStandardVTwo { signUpSettingServiceId := signupsettings.NewServiceID(subscriptionId, id.ResourceGroupName, id.ServiceName) signUpSettings := expandApiManagementSignUpSettings(signUpSettingsRaw) signUpClient := meta.(*clients.Client).ApiManagement.SignUpClient @@ -1150,10 +1150,10 @@ func resourceApiManagementServiceUpdate(d *pluginsdk.ResourceData, meta interfac if d.HasChange("sign_in") { signInSettingsRaw := d.Get("sign_in").([]interface{}) - if sku.Name == apimanagementservice.SkuTypeConsumption && len(signInSettingsRaw) > 0 { - return fmt.Errorf("`sign_in` is not support for sku tier `Consumption`") + if (sku.Name == apimanagementservice.SkuTypeConsumption || sku.Name == apimanagementservice.SkuTypeBasicVTwo || sku.Name == apimanagementservice.SkuTypeStandardVTwo) && len(signInSettingsRaw) > 0 { + return fmt.Errorf("`sign_in` is not support for sku tier `Consumption`, `BasicV2` or `StandardV2`") } - if sku.Name != apimanagementservice.SkuTypeConsumption { + if sku.Name != apimanagementservice.SkuTypeConsumption && sku.Name != apimanagementservice.SkuTypeBasicVTwo && sku.Name != apimanagementservice.SkuTypeStandardVTwo { signInSettingServiceId := signinsettings.NewServiceID(subscriptionId, id.ResourceGroupName, id.ServiceName) signInSettings := expandApiManagementSignInSettings(signInSettingsRaw) signInClient := meta.(*clients.Client).ApiManagement.SignInClient @@ -1165,10 +1165,10 @@ func resourceApiManagementServiceUpdate(d *pluginsdk.ResourceData, meta interfac if d.HasChange("sign_up") { signUpSettingsRaw := d.Get("sign_up").([]interface{}) - if sku.Name == apimanagementservice.SkuTypeConsumption && len(signUpSettingsRaw) > 0 { - return fmt.Errorf("`sign_up` is not support for sku tier `Consumption`") + if (sku.Name == apimanagementservice.SkuTypeConsumption || sku.Name == apimanagementservice.SkuTypeBasicVTwo || sku.Name == apimanagementservice.SkuTypeStandardVTwo) && len(signUpSettingsRaw) > 0 { + return fmt.Errorf("`sign_up` is not support for sku tier `Consumption`, `BasicV2` or `StandardV2`") } - if sku.Name != apimanagementservice.SkuTypeConsumption { + if sku.Name != apimanagementservice.SkuTypeConsumption && sku.Name != apimanagementservice.SkuTypeBasicVTwo && sku.Name != apimanagementservice.SkuTypeStandardVTwo { signUpSettingServiceId := signupsettings.NewServiceID(subscriptionId, id.ResourceGroupName, id.ServiceName) signUpSettings := expandApiManagementSignUpSettings(signUpSettingsRaw) signUpClient := meta.(*clients.Client).ApiManagement.SignUpClient @@ -1351,7 +1351,7 @@ func resourceApiManagementServiceRead(d *pluginsdk.ResourceData, meta interface{ d.Set("zones", zones.FlattenUntyped(model.Zones)) - if model.Sku.Name != apimanagementservice.SkuTypeConsumption { + if model.Sku.Name != apimanagementservice.SkuTypeConsumption && model.Sku.Name != apimanagementservice.SkuTypeBasicVTwo && model.Sku.Name != apimanagementservice.SkuTypeStandardVTwo { signInSettingServiceId := signinsettings.NewServiceID(id.SubscriptionId, id.ResourceGroupName, id.ServiceName) signInSettings, err := signInClient.Get(ctx, signInSettingServiceId) if err != nil { diff --git a/internal/services/apimanagement/api_management_resource_test.go b/internal/services/apimanagement/api_management_resource_test.go index 98c834382b02..9b96daaefc75 100644 --- a/internal/services/apimanagement/api_management_resource_test.go +++ b/internal/services/apimanagement/api_management_resource_test.go @@ -83,6 +83,21 @@ func TestAccApiManagement_skuUpgradeDowngrade(t *testing.T) { }) } +func TestAccApiManagement_standardV2(t *testing.T) { + data := acceptance.BuildTestData(t, "azurerm_api_management", "test") + r := ApiManagementResource{} + + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.standardV2Sku(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), + }) +} + func TestAccApiManagement_customProps(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_api_management", "test") r := ApiManagementResource{} @@ -1250,6 +1265,29 @@ resource "azurerm_api_management" "test" { `, data.RandomInteger, data.Locations.Primary, data.RandomInteger) } +func (ApiManagementResource) standardV2Sku(data acceptance.TestData) string { + return fmt.Sprintf(` +provider "azurerm" { + features {} +} + +resource "azurerm_resource_group" "test" { + name = "acctestRG-%d" + location = "%s" +} + +resource "azurerm_api_management" "test" { + name = "acctestAM-%d" + location = azurerm_resource_group.test.location + resource_group_name = azurerm_resource_group.test.name + publisher_name = "pub1" + publisher_email = "pub1@email.com" + + sku_name = "StandardV2_1" +} +`, data.RandomInteger, data.Locations.Primary, data.RandomInteger) +} + func (ApiManagementResource) policyXmlContent(data acceptance.TestData) string { return fmt.Sprintf(` provider "azurerm" { diff --git a/website/docs/r/api_management.html.markdown b/website/docs/r/api_management.html.markdown index a2e59b2cc006..96f2c9c96358 100644 --- a/website/docs/r/api_management.html.markdown +++ b/website/docs/r/api_management.html.markdown @@ -1,7 +1,7 @@ --- -subcategory: "API Management" -layout: "azurerm" -page_title: "Azure Resource Manager: azurerm_api_management" +subcategory: 'API Management' +layout: 'azurerm' +page_title: 'Azure Resource Manager: azurerm_api_management' description: |- Manages an API Management Service. --- @@ -41,17 +41,17 @@ resource "azurerm_api_management" "example" { The following arguments are supported: -* `name` - (Required) The name of the API Management Service. Changing this forces a new resource to be created. +- `name` - (Required) The name of the API Management Service. Changing this forces a new resource to be created. -* `location` - (Required) The Azure location where the API Management Service exists. Changing this forces a new resource to be created. +- `location` - (Required) The Azure location where the API Management Service exists. Changing this forces a new resource to be created. -* `resource_group_name` - (Required) The name of the Resource Group in which the API Management Service should be exist. Changing this forces a new resource to be created. +- `resource_group_name` - (Required) The name of the Resource Group in which the API Management Service should be exist. Changing this forces a new resource to be created. -* `publisher_name` - (Required) The name of publisher/company. +- `publisher_name` - (Required) The name of publisher/company. -* `publisher_email` - (Required) The email of publisher/company. +- `publisher_email` - (Required) The email of publisher/company. -* `sku_name` - (Required) `sku_name` is a string consisting of two parts separated by an underscore(\_). The first part is the `name`, valid values include: `Consumption`, `Developer`, `Basic`, `Standard` and `Premium`. The second part is the `capacity` (e.g. the number of deployed units of the `sku`), which must be a positive `integer` (e.g. `Developer_1`). +- `sku_name` - (Required) `sku_name` is a string consisting of two parts separated by an underscore(\_). The first part is the `name`, valid values include: `Consumption`, `Developer`, `Basic`, `BasicV2`, `Standard`, `StandardV2` and `Premium`. The second part is the `capacity` (e.g. the number of deployed units of the `sku`), which must be a positive `integer` (e.g. `Developer_1`). ~> **NOTE:** Premium SKU's are limited to a default maximum of 12 (i.e. `Premium_12`), this can, however, be increased via support request. @@ -59,115 +59,115 @@ The following arguments are supported: --- -* `additional_location` - (Optional) One or more `additional_location` blocks as defined below. +- `additional_location` - (Optional) One or more `additional_location` blocks as defined below. -* `certificate` - (Optional) One or more `certificate` blocks (up to 10) as defined below. +- `certificate` - (Optional) One or more `certificate` blocks (up to 10) as defined below. -* `client_certificate_enabled` - (Optional) Enforce a client certificate to be presented on each request to the gateway? This is only supported when SKU type is `Consumption`. +- `client_certificate_enabled` - (Optional) Enforce a client certificate to be presented on each request to the gateway? This is only supported when SKU type is `Consumption`. -* `delegation` - (Optional) A `delegation` block as defined below. +- `delegation` - (Optional) A `delegation` block as defined below. -* `gateway_disabled` - (Optional) Disable the gateway in main region? This is only supported when `additional_location` is set. +- `gateway_disabled` - (Optional) Disable the gateway in main region? This is only supported when `additional_location` is set. -* `min_api_version` - (Optional) The version which the control plane API calls to API Management service are limited with version equal to or newer than. +- `min_api_version` - (Optional) The version which the control plane API calls to API Management service are limited with version equal to or newer than. -* `zones` - (Optional) Specifies a list of Availability Zones in which this API Management service should be located. +- `zones` - (Optional) Specifies a list of Availability Zones in which this API Management service should be located. ~> **NOTE:** Availability zones are only supported in the Premium tier. -* `identity` - (Optional) An `identity` block as defined below. +- `identity` - (Optional) An `identity` block as defined below. -* `hostname_configuration` - (Optional) A `hostname_configuration` block as defined below. +- `hostname_configuration` - (Optional) A `hostname_configuration` block as defined below. -* `notification_sender_email` - (Optional) Email address from which the notification will be sent. +- `notification_sender_email` - (Optional) Email address from which the notification will be sent. -* `protocols` - (Optional) A `protocols` block as defined below. +- `protocols` - (Optional) A `protocols` block as defined below. -* `security` - (Optional) A `security` block as defined below. +- `security` - (Optional) A `security` block as defined below. -* `sign_in` - (Optional) A `sign_in` block as defined below. +- `sign_in` - (Optional) A `sign_in` block as defined below. It can't be defined for `BasicV2` and `StandardV2` SKUs. -* `sign_up` - (Optional) A `sign_up` block as defined below. +- `sign_up` - (Optional) A `sign_up` block as defined below. It can't be defined for `BasicV2` and `StandardV2` SKUs. -* `tenant_access` - (Optional) A `tenant_access` block as defined below. +- `tenant_access` - (Optional) A `tenant_access` block as defined below. -* `public_ip_address_id` - (Optional) ID of a standard SKU IPv4 Public IP. +- `public_ip_address_id` - (Optional) ID of a standard SKU IPv4 Public IP. ~> **NOTE:** Custom public IPs are only supported on the `Premium` and `Developer` tiers when deployed in a virtual network. -* `public_network_access_enabled` - (Optional) Is public access to the service allowed? Defaults to `true`. +- `public_network_access_enabled` - (Optional) Is public access to the service allowed? Defaults to `true`. ~> **NOTE:** This option is applicable only to the Management plane, not the API gateway or Developer portal. It is required to be `true` on the creation. -* `virtual_network_type` - (Optional) The type of virtual network you want to use, valid values include: `None`, `External`, `Internal`. Defaults to `None`. +- `virtual_network_type` - (Optional) The type of virtual network you want to use, valid values include: `None`, `External`, `Internal`. Defaults to `None`. > **NOTE:** Please ensure that in the subnet, inbound port 3443 is open when `virtual_network_type` is `Internal` or `External`. And please ensure other necessary ports are open according to [api management network configuration](https://learn.microsoft.com/azure/api-management/virtual-network-reference). -* `virtual_network_configuration` - (Optional) A `virtual_network_configuration` block as defined below. Required when `virtual_network_type` is `External` or `Internal`. +- `virtual_network_configuration` - (Optional) A `virtual_network_configuration` block as defined below. Required when `virtual_network_type` is `External` or `Internal`. -* `tags` - (Optional) A mapping of tags assigned to the resource. +- `tags` - (Optional) A mapping of tags assigned to the resource. --- A `additional_location` block supports the following: -* `location` - (Required) The name of the Azure Region in which the API Management Service should be expanded to. +- `location` - (Required) The name of the Azure Region in which the API Management Service should be expanded to. -* `capacity` - (Optional) The number of compute units in this region. Defaults to the capacity of the main region. +- `capacity` - (Optional) The number of compute units in this region. Defaults to the capacity of the main region. -* `zones` - (Optional) A list of availability zones. +- `zones` - (Optional) A list of availability zones. -* `public_ip_address_id` - (Optional) ID of a standard SKU IPv4 Public IP. +- `public_ip_address_id` - (Optional) ID of a standard SKU IPv4 Public IP. ~> **NOTE:** Availability zones and custom public IPs are only supported in the Premium tier. -* `virtual_network_configuration` - (Optional) A `virtual_network_configuration` block as defined below. Required when `virtual_network_type` is `External` or `Internal`. +- `virtual_network_configuration` - (Optional) A `virtual_network_configuration` block as defined below. Required when `virtual_network_type` is `External` or `Internal`. -* `gateway_disabled` - (Optional) Only valid for an Api Management service deployed in multiple locations. This can be used to disable the gateway in this additional location. +- `gateway_disabled` - (Optional) Only valid for an Api Management service deployed in multiple locations. This can be used to disable the gateway in this additional location. --- A `certificate` block supports the following: -* `encoded_certificate` - (Required) The Base64 Encoded PFX or Base64 Encoded X.509 Certificate. +- `encoded_certificate` - (Required) The Base64 Encoded PFX or Base64 Encoded X.509 Certificate. -* `store_name` - (Required) The name of the Certificate Store where this certificate should be stored. Possible values are `CertificateAuthority` and `Root`. +- `store_name` - (Required) The name of the Certificate Store where this certificate should be stored. Possible values are `CertificateAuthority` and `Root`. -* `certificate_password` - (Optional) The password for the certificate. +- `certificate_password` - (Optional) The password for the certificate. --- A `delegation` block supports the following: -* `subscriptions_enabled` - (Optional) Should subscription requests be delegated to an external url? Defaults to `false`. +- `subscriptions_enabled` - (Optional) Should subscription requests be delegated to an external url? Defaults to `false`. -* `user_registration_enabled` - (Optional) Should user registration requests be delegated to an external url? Defaults to `false`. +- `user_registration_enabled` - (Optional) Should user registration requests be delegated to an external url? Defaults to `false`. -* `url` - (Optional) The delegation URL. +- `url` - (Optional) The delegation URL. -* `validation_key` - (Optional) A base64-encoded validation key to validate, that a request is coming from Azure API Management. +- `validation_key` - (Optional) A base64-encoded validation key to validate, that a request is coming from Azure API Management. --- A `hostname_configuration` block supports the following: -* `management` - (Optional) One or more `management` blocks as documented below. +- `management` - (Optional) One or more `management` blocks as documented below. -* `portal` - (Optional) One or more `portal` blocks as documented below. +- `portal` - (Optional) One or more `portal` blocks as documented below. -* `developer_portal` - (Optional) One or more `developer_portal` blocks as documented below. +- `developer_portal` - (Optional) One or more `developer_portal` blocks as documented below. -* `proxy` - (Optional) One or more `proxy` blocks as documented below. +- `proxy` - (Optional) One or more `proxy` blocks as documented below. -* `scm` - (Optional) One or more `scm` blocks as documented below. +- `scm` - (Optional) One or more `scm` blocks as documented below. --- An `identity` block supports the following: -* `type` - (Required) Specifies the type of Managed Service Identity that should be configured on this API Management Service. Possible values are `SystemAssigned`, `UserAssigned`, `SystemAssigned, UserAssigned` (to enable both). +- `type` - (Required) Specifies the type of Managed Service Identity that should be configured on this API Management Service. Possible values are `SystemAssigned`, `UserAssigned`, `SystemAssigned, UserAssigned` (to enable both). -* `identity_ids` - (Optional) A list of User Assigned Managed Identity IDs to be assigned to this API Management Service. +- `identity_ids` - (Optional) A list of User Assigned Managed Identity IDs to be assigned to this API Management Service. ~> **NOTE:** This is required when `type` is set to `UserAssigned` or `SystemAssigned, UserAssigned`. @@ -175,21 +175,21 @@ An `identity` block supports the following: A `management`, `portal`, `developer_portal` and `scm` block supports the following: -* `host_name` - (Required) The Hostname to use for the Management API. +- `host_name` - (Required) The Hostname to use for the Management API. -* `key_vault_id` - (Optional) The ID of the Key Vault Secret containing the SSL Certificate, which must be should be of the type `application/x-pkcs12`. +- `key_vault_id` - (Optional) The ID of the Key Vault Secret containing the SSL Certificate, which must be should be of the type `application/x-pkcs12`. -> **NOTE:** Setting this field requires the `identity` block to be specified, since this identity is used for to retrieve the Key Vault Certificate. Possible values are versioned or versionless secret ID. Auto-updating the Certificate from the Key Vault requires the Secret version isn't specified. -* `certificate` - (Optional) The Base64 Encoded Certificate. +- `certificate` - (Optional) The Base64 Encoded Certificate. -* `certificate_password` - (Optional) The password associated with the certificate provided above. +- `certificate_password` - (Optional) The password associated with the certificate provided above. -> **NOTE:** Either `key_vault_id` or `certificate` and `certificate_password` must be specified. -* `negotiate_client_certificate` - (Optional) Should Client Certificate Negotiation be enabled for this Hostname? Defaults to `false`. +- `negotiate_client_certificate` - (Optional) Should Client Certificate Negotiation be enabled for this Hostname? Defaults to `false`. -* `ssl_keyvault_identity_client_id` - (Optional) System or User Assigned Managed identity clientId as generated by Azure AD, which has `GET` access to the keyVault containing the SSL certificate. +- `ssl_keyvault_identity_client_id` - (Optional) System or User Assigned Managed identity clientId as generated by Azure AD, which has `GET` access to the keyVault containing the SSL certificate. -> **NOTE:** If a User Assigned Managed identity is specified for `ssl_keyvault_identity_client_id` then this identity must be associated to the `azurerm_api_management` within an `identity` block. @@ -197,99 +197,99 @@ A `management`, `portal`, `developer_portal` and `scm` block supports the follow A `proxy` block supports the following: -* `default_ssl_binding` - (Optional) Is the certificate associated with this Hostname the Default SSL Certificate? This is used when an SNI header isn't specified by a client. Defaults to `false`. +- `default_ssl_binding` - (Optional) Is the certificate associated with this Hostname the Default SSL Certificate? This is used when an SNI header isn't specified by a client. Defaults to `false`. -* `host_name` - (Required) The Hostname to use for the Management API. +- `host_name` - (Required) The Hostname to use for the Management API. -* `key_vault_id` - (Optional) The ID of the Key Vault Secret containing the SSL Certificate, which must be should be of the type `application/x-pkcs12`. +- `key_vault_id` - (Optional) The ID of the Key Vault Secret containing the SSL Certificate, which must be should be of the type `application/x-pkcs12`. -> **NOTE:** Setting this field requires the `identity` block to be specified, since this identity is used for to retrieve the Key Vault Certificate. Auto-updating the Certificate from the Key Vault requires the Secret version isn't specified. -* `certificate` - (Optional) The Base64 Encoded Certificate. +- `certificate` - (Optional) The Base64 Encoded Certificate. -* `certificate_password` - (Optional) The password associated with the certificate provided above. +- `certificate_password` - (Optional) The password associated with the certificate provided above. -> **NOTE:** Either `key_vault_id` or `certificate` and `certificate_password` must be specified. -* `negotiate_client_certificate` - (Optional) Should Client Certificate Negotiation be enabled for this Hostname? Defaults to `false`. +- `negotiate_client_certificate` - (Optional) Should Client Certificate Negotiation be enabled for this Hostname? Defaults to `false`. -* `ssl_keyvault_identity_client_id` - (Optional) The Managed Identity Client ID to use to access the Key Vault. This Identity must be specified in the `identity` block to be used. +- `ssl_keyvault_identity_client_id` - (Optional) The Managed Identity Client ID to use to access the Key Vault. This Identity must be specified in the `identity` block to be used. --- A `protocols` block supports the following: -* `enable_http2` - (Optional) Should HTTP/2 be supported by the API Management Service? Defaults to `false`. +- `enable_http2` - (Optional) Should HTTP/2 be supported by the API Management Service? Defaults to `false`. --- A `security` block supports the following: -* `enable_backend_ssl30` - (Optional) Should SSL 3.0 be enabled on the backend of the gateway? Defaults to `false`. +- `enable_backend_ssl30` - (Optional) Should SSL 3.0 be enabled on the backend of the gateway? Defaults to `false`. -> **info:** This maps to the `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Ssl30` field -* `enable_backend_tls10` - (Optional) Should TLS 1.0 be enabled on the backend of the gateway? Defaults to `false`. +- `enable_backend_tls10` - (Optional) Should TLS 1.0 be enabled on the backend of the gateway? Defaults to `false`. -> **info:** This maps to the `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls10` field -* `enable_backend_tls11` - (Optional) Should TLS 1.1 be enabled on the backend of the gateway? Defaults to `false`. +- `enable_backend_tls11` - (Optional) Should TLS 1.1 be enabled on the backend of the gateway? Defaults to `false`. -> **info:** This maps to the `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls11` field -* `enable_frontend_ssl30` - (Optional) Should SSL 3.0 be enabled on the frontend of the gateway? Defaults to `false`. +- `enable_frontend_ssl30` - (Optional) Should SSL 3.0 be enabled on the frontend of the gateway? Defaults to `false`. -> **info:** This maps to the `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Ssl30` field -* `enable_frontend_tls10` - (Optional) Should TLS 1.0 be enabled on the frontend of the gateway? Defaults to `false`. +- `enable_frontend_tls10` - (Optional) Should TLS 1.0 be enabled on the frontend of the gateway? Defaults to `false`. -> **info:** This maps to the `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls10` field -* `enable_frontend_tls11` - (Optional) Should TLS 1.1 be enabled on the frontend of the gateway? Defaults to `false`. +- `enable_frontend_tls11` - (Optional) Should TLS 1.1 be enabled on the frontend of the gateway? Defaults to `false`. -> **info:** This maps to the `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls11` field -* `tls_ecdhe_ecdsa_with_aes128_cbc_sha_ciphers_enabled` - (Optional) Should the `TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA` cipher be enabled? Defaults to `false`. +- `tls_ecdhe_ecdsa_with_aes128_cbc_sha_ciphers_enabled` - (Optional) Should the `TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA` cipher be enabled? Defaults to `false`. -> **info:** This maps to the `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA` field -* `tls_ecdhe_ecdsa_with_aes256_cbc_sha_ciphers_enabled` - (Optional) Should the `TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA` cipher be enabled? Defaults to `false`. +- `tls_ecdhe_ecdsa_with_aes256_cbc_sha_ciphers_enabled` - (Optional) Should the `TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA` cipher be enabled? Defaults to `false`. -> **info:** This maps to the `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA` field -* `tls_ecdhe_rsa_with_aes128_cbc_sha_ciphers_enabled` - (Optional) Should the `TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA` cipher be enabled? Defaults to `false`. +- `tls_ecdhe_rsa_with_aes128_cbc_sha_ciphers_enabled` - (Optional) Should the `TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA` cipher be enabled? Defaults to `false`. -> **info:** This maps to the `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA` field -* `tls_ecdhe_rsa_with_aes256_cbc_sha_ciphers_enabled` - (Optional) Should the `TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA` cipher be enabled? Defaults to `false`. +- `tls_ecdhe_rsa_with_aes256_cbc_sha_ciphers_enabled` - (Optional) Should the `TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA` cipher be enabled? Defaults to `false`. -> **info:** This maps to the `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA` field -* `tls_rsa_with_aes128_cbc_sha256_ciphers_enabled` - (Optional) Should the `TLS_RSA_WITH_AES_128_CBC_SHA256` cipher be enabled? Defaults to `false`. +- `tls_rsa_with_aes128_cbc_sha256_ciphers_enabled` - (Optional) Should the `TLS_RSA_WITH_AES_128_CBC_SHA256` cipher be enabled? Defaults to `false`. -> **info:** This maps to the `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TLS_RSA_WITH_AES_128_CBC_SHA256` field -* `tls_rsa_with_aes128_cbc_sha_ciphers_enabled` - (Optional) Should the `TLS_RSA_WITH_AES_128_CBC_SHA` cipher be enabled? Defaults to `false`. +- `tls_rsa_with_aes128_cbc_sha_ciphers_enabled` - (Optional) Should the `TLS_RSA_WITH_AES_128_CBC_SHA` cipher be enabled? Defaults to `false`. -> **info:** This maps to the `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TLS_RSA_WITH_AES_128_CBC_SHA` field -* `tls_rsa_with_aes128_gcm_sha256_ciphers_enabled` - (Optional) Should the `TLS_RSA_WITH_AES_128_GCM_SHA256` cipher be enabled? Defaults to `false`. +- `tls_rsa_with_aes128_gcm_sha256_ciphers_enabled` - (Optional) Should the `TLS_RSA_WITH_AES_128_GCM_SHA256` cipher be enabled? Defaults to `false`. -> **info:** This maps to the `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TLS_RSA_WITH_AES_128_GCM_SHA256` field -* `tls_rsa_with_aes256_gcm_sha384_ciphers_enabled` - (Optional) Should the `TLS_RSA_WITH_AES_256_GCM_SHA384` cipher be enabled? Defaults to `false`. +- `tls_rsa_with_aes256_gcm_sha384_ciphers_enabled` - (Optional) Should the `TLS_RSA_WITH_AES_256_GCM_SHA384` cipher be enabled? Defaults to `false`. -> **info:** This maps to the `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TLS_RSA_WITH_AES_256_GCM_SHA384` field -* `tls_rsa_with_aes256_cbc_sha256_ciphers_enabled` - (Optional) Should the `TLS_RSA_WITH_AES_256_CBC_SHA256` cipher be enabled? Defaults to `false`. +- `tls_rsa_with_aes256_cbc_sha256_ciphers_enabled` - (Optional) Should the `TLS_RSA_WITH_AES_256_CBC_SHA256` cipher be enabled? Defaults to `false`. -> **info:** This maps to the `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TLS_RSA_WITH_AES_256_CBC_SHA256` field -* `tls_rsa_with_aes256_cbc_sha_ciphers_enabled` - (Optional) Should the `TLS_RSA_WITH_AES_256_CBC_SHA` cipher be enabled? Defaults to `false`. +- `tls_rsa_with_aes256_cbc_sha_ciphers_enabled` - (Optional) Should the `TLS_RSA_WITH_AES_256_CBC_SHA` cipher be enabled? Defaults to `false`. -> **info:** This maps to the `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TLS_RSA_WITH_AES_256_CBC_SHA` field -* `triple_des_ciphers_enabled` - (Optional) Should the `TLS_RSA_WITH_3DES_EDE_CBC_SHA` cipher be enabled for alL TLS versions (1.0, 1.1 and 1.2)? +- `triple_des_ciphers_enabled` - (Optional) Should the `TLS_RSA_WITH_3DES_EDE_CBC_SHA` cipher be enabled for alL TLS versions (1.0, 1.1 and 1.2)? -> **info:** This maps to the `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TripleDes168` field @@ -297,128 +297,128 @@ A `security` block supports the following: A `sign_in` block supports the following: -* `enabled` - (Required) Should anonymous users be redirected to the sign in page? +- `enabled` - (Required) Should anonymous users be redirected to the sign in page? --- A `sign_up` block supports the following: -* `enabled` - (Required) Can users sign up on the development portal? +- `enabled` - (Required) Can users sign up on the development portal? -* `terms_of_service` - (Required) A `terms_of_service` block as defined below. +- `terms_of_service` - (Required) A `terms_of_service` block as defined below. --- A `tenant_access` block supports the following: -* `enabled` - (Required) Should the access to the management API be enabled? +- `enabled` - (Required) Should the access to the management API be enabled? --- A `virtual_network_configuration` block supports the following: -* `subnet_id` - (Required) The id of the subnet that will be used for the API Management. +- `subnet_id` - (Required) The id of the subnet that will be used for the API Management. --- A `terms_of_service` block supports the following: -* `consent_required` - (Required) Should the user be asked for consent during sign up? +- `consent_required` - (Required) Should the user be asked for consent during sign up? -* `enabled` - (Required) Should Terms of Service be displayed during sign up?. +- `enabled` - (Required) Should Terms of Service be displayed during sign up?. -* `text` - (Optional) The Terms of Service which users are required to agree to in order to sign up. +- `text` - (Optional) The Terms of Service which users are required to agree to in order to sign up. ## Attributes Reference In addition to the Arguments listed above - the following Attributes are exported: -* `id` - The ID of the API Management Service. +- `id` - The ID of the API Management Service. -* `additional_location` - Zero or more `additional_location` blocks as documented below. +- `additional_location` - Zero or more `additional_location` blocks as documented below. -* `gateway_url` - The URL of the Gateway for the API Management Service. +- `gateway_url` - The URL of the Gateway for the API Management Service. -* `gateway_regional_url` - The Region URL for the Gateway of the API Management Service. +- `gateway_regional_url` - The Region URL for the Gateway of the API Management Service. -* `identity` - An `identity` block as defined below. +- `identity` - An `identity` block as defined below. -* `hostname_configuration` - A `hostname_configuration` block as defined below. +- `hostname_configuration` - A `hostname_configuration` block as defined below. -* `management_api_url` - The URL for the Management API associated with this API Management service. +- `management_api_url` - The URL for the Management API associated with this API Management service. -* `portal_url` - The URL for the Publisher Portal associated with this API Management service. +- `portal_url` - The URL for the Publisher Portal associated with this API Management service. -* `developer_portal_url` - The URL for the Developer Portal associated with this API Management service. +- `developer_portal_url` - The URL for the Developer Portal associated with this API Management service. -* `public_ip_addresses` - The Public IP addresses of the API Management Service. +- `public_ip_addresses` - The Public IP addresses of the API Management Service. -* `private_ip_addresses` - The Private IP addresses of the API Management Service. +- `private_ip_addresses` - The Private IP addresses of the API Management Service. -* `scm_url` - The URL for the SCM (Source Code Management) Endpoint associated with this API Management service. +- `scm_url` - The URL for the SCM (Source Code Management) Endpoint associated with this API Management service. -* `tenant_access` - The `tenant_access` block as documented below. +- `tenant_access` - The `tenant_access` block as documented below. --- An `additional_location` block exports the following: -* `gateway_regional_url` - The URL of the Regional Gateway for the API Management Service in the specified region. +- `gateway_regional_url` - The URL of the Regional Gateway for the API Management Service in the specified region. -* `public_ip_addresses` - Public Static Load Balanced IP addresses of the API Management service in the additional location. Available only for Basic, Standard and Premium SKU. +- `public_ip_addresses` - Public Static Load Balanced IP addresses of the API Management service in the additional location. Available only for Basic, Standard and Premium SKU. -* `private_ip_addresses` - The Private IP addresses of the API Management Service. Available only when the API Manager instance is using Virtual Network mode. +- `private_ip_addresses` - The Private IP addresses of the API Management Service. Available only when the API Manager instance is using Virtual Network mode. --- An `identity` block exports the following: -* `principal_id` - The Principal ID associated with this Managed Service Identity. +- `principal_id` - The Principal ID associated with this Managed Service Identity. -* `tenant_id` - The Tenant ID associated with this Managed Service Identity. +- `tenant_id` - The Tenant ID associated with this Managed Service Identity. --- A `tenant_access` block exports the following: -* `tenant_id` - The identifier for the tenant access information contract. +- `tenant_id` - The identifier for the tenant access information contract. -* `primary_key` - Primary access key for the tenant access information contract. +- `primary_key` - Primary access key for the tenant access information contract. -* `secondary_key` - Secondary access key for the tenant access information contract. +- `secondary_key` - Secondary access key for the tenant access information contract. --- The `certificate` block exports the following: -* `expiry` - The expiration date of the certificate in RFC3339 format: `2000-01-02T03:04:05Z`. +- `expiry` - The expiration date of the certificate in RFC3339 format: `2000-01-02T03:04:05Z`. -* `thumbprint` - The thumbprint of the certificate. +- `thumbprint` - The thumbprint of the certificate. -* `subject` - The subject of the certificate. +- `subject` - The subject of the certificate. --- The `hostname_configuration` block exports the following: -* `proxy` - A `proxy` block as defined below. +- `proxy` - A `proxy` block as defined below. --- The `proxy` block exports the following: -* `certificate_source` - The source of the certificate. +- `certificate_source` - The source of the certificate. -* `certificate_status` - The status of the certificate. +- `certificate_status` - The status of the certificate. ## Timeouts The `timeouts` block allows you to specify [timeouts](https://www.terraform.io/language/resources/syntax#operation-timeouts) for certain actions: -* `create` - (Defaults to 3 hours) Used when creating the API Management Service. -* `update` - (Defaults to 3 hours) Used when updating the API Management Service. -* `read` - (Defaults to 5 minutes) Used when retrieving the API Management Service. -* `delete` - (Defaults to 3 hours) Used when deleting the API Management Service. +- `create` - (Defaults to 3 hours) Used when creating the API Management Service. +- `update` - (Defaults to 3 hours) Used when updating the API Management Service. +- `read` - (Defaults to 5 minutes) Used when retrieving the API Management Service. +- `delete` - (Defaults to 3 hours) Used when deleting the API Management Service. ## Import From e1bc2a72ea30781a8cc065ba3ee901945654c0e3 Mon Sep 17 00:00:00 2001 From: Zsolt Fejer Date: Wed, 24 Jul 2024 10:58:58 +0100 Subject: [PATCH 3/6] Add condition to force new --- internal/services/apimanagement/api_management_resource.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/services/apimanagement/api_management_resource.go b/internal/services/apimanagement/api_management_resource.go index f37ed230d148..97b797722a0d 100644 --- a/internal/services/apimanagement/api_management_resource.go +++ b/internal/services/apimanagement/api_management_resource.go @@ -95,6 +95,10 @@ func resourceApiManagementService() *pluginsdk.Resource { pluginsdk.ForceNewIfChange("virtual_network_configuration", func(ctx context.Context, old, new, meta interface{}) bool { return !(len(old.([]interface{})) == 0 && len(new.([]interface{})) > 0) }), + + pluginsdk.ForceNewIfChange("sku_name", func(ctx context.Context, old, new, meta interface{}) bool { + return (strings.Contains(old.(string), "V2") && !strings.Contains(new.(string), "V2")) || (strings.Contains(new.(string), "V2") && !strings.Contains(old.(string), "V2")) + }), ), } } From e8901fd645e243bdda90b57d49984273d4b22d3b Mon Sep 17 00:00:00 2001 From: Zsolt Fejer Date: Thu, 24 Oct 2024 16:22:25 +0100 Subject: [PATCH 4/6] name back URLs --- .../apimanagement/api_management_api_data_source.go | 2 +- .../api_management_api_diagnostic_resource.go | 2 +- .../apimanagement/api_management_api_resource.go | 10 +++++----- .../api_management_api_tag_description_resource.go | 4 ++-- .../apimanagement/api_management_data_source.go | 12 ++++++------ .../api_management_diagnostic_resource.go | 2 +- .../apimanagement/api_management_resource.go | 12 ++++++------ 7 files changed, 22 insertions(+), 22 deletions(-) diff --git a/internal/services/apimanagement/api_management_api_data_source.go b/internal/services/apimanagement/api_management_api_data_source.go index 4b7ca20aa356..34393ad0fee5 100644 --- a/internal/services/apimanagement/api_management_api_data_source.go +++ b/internal/services/apimanagement/api_management_api_data_source.go @@ -155,7 +155,7 @@ func dataSourceApiManagementApiRead(d *pluginsdk.ResourceData, meta interface{}) d.Set("is_online", pointer.From(props.IsOnline)) d.Set("path", props.Path) d.Set("revision", pointer.From(props.ApiRevision)) - d.Set("service_url", pointer.From(props.ServiceURL)) + d.Set("service_url", pointer.From(props.ServiceUrl)) d.Set("soap_pass_through", pointer.From(props.Type) == api.ApiTypeSoap) d.Set("subscription_required", pointer.From(props.SubscriptionRequired)) d.Set("version", pointer.From(props.ApiVersion)) diff --git a/internal/services/apimanagement/api_management_api_diagnostic_resource.go b/internal/services/apimanagement/api_management_api_diagnostic_resource.go index a64329059de7..2a60b8c99be8 100644 --- a/internal/services/apimanagement/api_management_api_diagnostic_resource.go +++ b/internal/services/apimanagement/api_management_api_diagnostic_resource.go @@ -119,7 +119,7 @@ func resourceApiManagementApiDiagnostic() *pluginsdk.Resource { Default: string(apidiagnostic.OperationNameFormatName), ValidateFunc: validation.StringInSlice([]string{ string(apidiagnostic.OperationNameFormatName), - string(apidiagnostic.OperationNameFormatURL), + string(apidiagnostic.OperationNameFormatUrl), }, false), }, }, diff --git a/internal/services/apimanagement/api_management_api_resource.go b/internal/services/apimanagement/api_management_api_resource.go index d5d09b3bc487..e1e01204bf06 100644 --- a/internal/services/apimanagement/api_management_api_resource.go +++ b/internal/services/apimanagement/api_management_api_resource.go @@ -427,7 +427,7 @@ func resourceApiManagementApiCreateUpdate(d *pluginsdk.ResourceData, meta interf } if v, ok := d.GetOk("service_url"); ok { - apiParams.Properties.ServiceURL = pointer.To(v.(string)) + apiParams.Properties.ServiceUrl = pointer.To(v.(string)) } wsdlSelectorVs := importV["wsdl_selector"].([]interface{}) @@ -485,7 +485,7 @@ func resourceApiManagementApiCreateUpdate(d *pluginsdk.ResourceData, meta interf Description: pointer.To(description), Path: path, Protocols: protocols, - ServiceURL: pointer.To(serviceUrl), + ServiceUrl: pointer.To(serviceUrl), SubscriptionKeyParameterNames: subscriptionKeyParameterNames, SubscriptionRequired: &subscriptionRequired, AuthenticationSettings: authenticationSettings, @@ -512,7 +512,7 @@ func resourceApiManagementApiCreateUpdate(d *pluginsdk.ResourceData, meta interf } if v, ok := d.GetOk("terms_of_service_url"); ok { - params.Properties.TermsOfServiceURL = pointer.To(v.(string)) + params.Properties.TermsOfServiceUrl = pointer.To(v.(string)) } if err := client.CreateOrUpdateThenPoll(ctx, newId, params, api.CreateOrUpdateOperationOptions{IfMatch: pointer.To("*")}); err != nil { @@ -560,7 +560,7 @@ func resourceApiManagementApiRead(d *pluginsdk.ResourceData, meta interface{}) e d.Set("is_current", pointer.From(props.IsCurrent)) d.Set("is_online", pointer.From(props.IsOnline)) d.Set("path", props.Path) - d.Set("service_url", pointer.From(props.ServiceURL)) + d.Set("service_url", pointer.From(props.ServiceUrl)) d.Set("revision", pointer.From(props.ApiRevision)) if !features.FourPointOhBeta() { d.Set("soap_pass_through", apiType == string(api.ApiTypeSoap)) @@ -570,7 +570,7 @@ func resourceApiManagementApiRead(d *pluginsdk.ResourceData, meta interface{}) e d.Set("version_set_id", pointer.From(props.ApiVersionSetId)) d.Set("revision_description", pointer.From(props.ApiRevisionDescription)) d.Set("version_description", pointer.From(props.ApiVersionDescription)) - d.Set("terms_of_service_url", pointer.From(props.TermsOfServiceURL)) + d.Set("terms_of_service_url", pointer.From(props.TermsOfServiceUrl)) if err := d.Set("protocols", flattenApiManagementApiProtocols(props.Protocols)); err != nil { return fmt.Errorf("setting `protocols`: %s", err) diff --git a/internal/services/apimanagement/api_management_api_tag_description_resource.go b/internal/services/apimanagement/api_management_api_tag_description_resource.go index 42cbdf54d969..d92af077a2ad 100644 --- a/internal/services/apimanagement/api_management_api_tag_description_resource.go +++ b/internal/services/apimanagement/api_management_api_tag_description_resource.go @@ -100,7 +100,7 @@ func resourceApiManagementApiTagDescriptionCreateUpdate(d *pluginsdk.ResourceDat } if v, ok := d.GetOk("external_documentation_url"); ok { - tagDescParameter.Properties.ExternalDocsURL = pointer.To(v.(string)) + tagDescParameter.Properties.ExternalDocsUrl = pointer.To(v.(string)) } if v, ok := d.GetOk("external_documentation_description"); ok { @@ -145,7 +145,7 @@ func resourceApiManagementApiTagDescriptionRead(d *pluginsdk.ResourceData, meta if model := resp.Model; model != nil { if props := model.Properties; props != nil { d.Set("description", pointer.From(props.Description)) - d.Set("external_documentation_url", pointer.From(props.ExternalDocsURL)) + d.Set("external_documentation_url", pointer.From(props.ExternalDocsUrl)) d.Set("external_documentation_description", pointer.From(props.ExternalDocsDescription)) } } diff --git a/internal/services/apimanagement/api_management_data_source.go b/internal/services/apimanagement/api_management_data_source.go index ed166f706d15..59f69b7b6754 100644 --- a/internal/services/apimanagement/api_management_data_source.go +++ b/internal/services/apimanagement/api_management_data_source.go @@ -269,11 +269,11 @@ func dataSourceApiManagementRead(d *pluginsdk.ResourceData, meta interface{}) er d.Set("publisher_email", model.Properties.PublisherEmail) d.Set("publisher_name", model.Properties.PublisherName) d.Set("notification_sender_email", pointer.From(model.Properties.NotificationSenderEmail)) - d.Set("gateway_url", pointer.From(model.Properties.GatewayURL)) - d.Set("gateway_regional_url", pointer.From(model.Properties.GatewayRegionalURL)) - d.Set("portal_url", pointer.From(model.Properties.PortalURL)) - d.Set("developer_portal_url", pointer.From(model.Properties.DeveloperPortalURL)) - d.Set("management_api_url", pointer.From(model.Properties.ManagementApiURL)) + d.Set("gateway_url", pointer.From(model.Properties.GatewayUrl)) + d.Set("gateway_regional_url", pointer.From(model.Properties.GatewayRegionalUrl)) + d.Set("portal_url", pointer.From(model.Properties.PortalUrl)) + d.Set("developer_portal_url", pointer.From(model.Properties.DeveloperPortalUrl)) + d.Set("management_api_url", pointer.From(model.Properties.ManagementApiUrl)) d.Set("scm_url", pointer.From(model.Properties.ScmURL)) d.Set("public_ip_addresses", pointer.From(model.Properties.PublicIPAddresses)) d.Set("public_ip_address_id", pointer.From(model.Properties.PublicIPAddressId)) @@ -376,7 +376,7 @@ func flattenDataSourceApiManagementAdditionalLocations(input *[]apimanagementser for _, prop := range *input { results = append(results, map[string]interface{}{ "capacity": int32(prop.Sku.Capacity), - "gateway_regional_url": pointer.From(prop.GatewayRegionalURL), + "gateway_regional_url": pointer.From(prop.GatewayRegionalUrl), "location": location.NormalizeNilable(pointer.To(prop.Location)), "private_ip_addresses": pointer.From(prop.PrivateIPAddresses), "public_ip_address_id": pointer.From(prop.PublicIPAddressId), diff --git a/internal/services/apimanagement/api_management_diagnostic_resource.go b/internal/services/apimanagement/api_management_diagnostic_resource.go index f9386fd5e089..a199146f66a6 100644 --- a/internal/services/apimanagement/api_management_diagnostic_resource.go +++ b/internal/services/apimanagement/api_management_diagnostic_resource.go @@ -116,7 +116,7 @@ func resourceApiManagementDiagnostic() *pluginsdk.Resource { Optional: true, ValidateFunc: validation.StringInSlice([]string{ string(diagnostic.OperationNameFormatName), - string(diagnostic.OperationNameFormatURL), + string(diagnostic.OperationNameFormatUrl), }, false), }, }, diff --git a/internal/services/apimanagement/api_management_resource.go b/internal/services/apimanagement/api_management_resource.go index a9431e42f508..bcc12e17f972 100644 --- a/internal/services/apimanagement/api_management_resource.go +++ b/internal/services/apimanagement/api_management_resource.go @@ -1291,11 +1291,11 @@ func resourceApiManagementServiceRead(d *pluginsdk.ResourceData, meta interface{ d.Set("publisher_email", model.Properties.PublisherEmail) d.Set("publisher_name", model.Properties.PublisherName) d.Set("notification_sender_email", pointer.From(model.Properties.NotificationSenderEmail)) - d.Set("gateway_url", pointer.From(model.Properties.GatewayURL)) - d.Set("gateway_regional_url", pointer.From(model.Properties.GatewayRegionalURL)) - d.Set("portal_url", pointer.From(model.Properties.PortalURL)) - d.Set("developer_portal_url", pointer.From(model.Properties.DeveloperPortalURL)) - d.Set("management_api_url", pointer.From(model.Properties.ManagementApiURL)) + d.Set("gateway_url", pointer.From(model.Properties.GatewayUrl)) + d.Set("gateway_regional_url", pointer.From(model.Properties.GatewayRegionalUrl)) + d.Set("portal_url", pointer.From(model.Properties.PortalUrl)) + d.Set("developer_portal_url", pointer.From(model.Properties.DeveloperPortalUrl)) + d.Set("management_api_url", pointer.From(model.Properties.ManagementApiUrl)) d.Set("scm_url", pointer.From(model.Properties.ScmURL)) d.Set("public_ip_addresses", pointer.From(model.Properties.PublicIPAddresses)) d.Set("public_ip_address_id", pointer.From(model.Properties.PublicIPAddressId)) @@ -1743,7 +1743,7 @@ func flattenApiManagementAdditionalLocations(input *[]apimanagementservice.Addit results = append(results, map[string]interface{}{ "capacity": int32(prop.Sku.Capacity), - "gateway_regional_url": pointer.From(prop.GatewayRegionalURL), + "gateway_regional_url": pointer.From(prop.GatewayRegionalUrl), "location": location.NormalizeNilable(pointer.To(prop.Location)), "private_ip_addresses": pointer.From(prop.PrivateIPAddresses), "public_ip_address_id": pointer.From(prop.PublicIPAddressId), From 2ccc91ffca10f217d434f3ea536261e76fd62745 Mon Sep 17 00:00:00 2001 From: Zsolt Fejer Date: Fri, 25 Oct 2024 15:33:12 +0100 Subject: [PATCH 5/6] Revert "name back URLs" This reverts commit e8901fd645e243bdda90b57d49984273d4b22d3b. --- .../apimanagement/api_management_api_data_source.go | 2 +- .../api_management_api_diagnostic_resource.go | 2 +- .../apimanagement/api_management_api_resource.go | 10 +++++----- .../api_management_api_tag_description_resource.go | 4 ++-- .../apimanagement/api_management_data_source.go | 12 ++++++------ .../api_management_diagnostic_resource.go | 2 +- .../apimanagement/api_management_resource.go | 12 ++++++------ 7 files changed, 22 insertions(+), 22 deletions(-) diff --git a/internal/services/apimanagement/api_management_api_data_source.go b/internal/services/apimanagement/api_management_api_data_source.go index 34393ad0fee5..4b7ca20aa356 100644 --- a/internal/services/apimanagement/api_management_api_data_source.go +++ b/internal/services/apimanagement/api_management_api_data_source.go @@ -155,7 +155,7 @@ func dataSourceApiManagementApiRead(d *pluginsdk.ResourceData, meta interface{}) d.Set("is_online", pointer.From(props.IsOnline)) d.Set("path", props.Path) d.Set("revision", pointer.From(props.ApiRevision)) - d.Set("service_url", pointer.From(props.ServiceUrl)) + d.Set("service_url", pointer.From(props.ServiceURL)) d.Set("soap_pass_through", pointer.From(props.Type) == api.ApiTypeSoap) d.Set("subscription_required", pointer.From(props.SubscriptionRequired)) d.Set("version", pointer.From(props.ApiVersion)) diff --git a/internal/services/apimanagement/api_management_api_diagnostic_resource.go b/internal/services/apimanagement/api_management_api_diagnostic_resource.go index 2a60b8c99be8..a64329059de7 100644 --- a/internal/services/apimanagement/api_management_api_diagnostic_resource.go +++ b/internal/services/apimanagement/api_management_api_diagnostic_resource.go @@ -119,7 +119,7 @@ func resourceApiManagementApiDiagnostic() *pluginsdk.Resource { Default: string(apidiagnostic.OperationNameFormatName), ValidateFunc: validation.StringInSlice([]string{ string(apidiagnostic.OperationNameFormatName), - string(apidiagnostic.OperationNameFormatUrl), + string(apidiagnostic.OperationNameFormatURL), }, false), }, }, diff --git a/internal/services/apimanagement/api_management_api_resource.go b/internal/services/apimanagement/api_management_api_resource.go index e1e01204bf06..d5d09b3bc487 100644 --- a/internal/services/apimanagement/api_management_api_resource.go +++ b/internal/services/apimanagement/api_management_api_resource.go @@ -427,7 +427,7 @@ func resourceApiManagementApiCreateUpdate(d *pluginsdk.ResourceData, meta interf } if v, ok := d.GetOk("service_url"); ok { - apiParams.Properties.ServiceUrl = pointer.To(v.(string)) + apiParams.Properties.ServiceURL = pointer.To(v.(string)) } wsdlSelectorVs := importV["wsdl_selector"].([]interface{}) @@ -485,7 +485,7 @@ func resourceApiManagementApiCreateUpdate(d *pluginsdk.ResourceData, meta interf Description: pointer.To(description), Path: path, Protocols: protocols, - ServiceUrl: pointer.To(serviceUrl), + ServiceURL: pointer.To(serviceUrl), SubscriptionKeyParameterNames: subscriptionKeyParameterNames, SubscriptionRequired: &subscriptionRequired, AuthenticationSettings: authenticationSettings, @@ -512,7 +512,7 @@ func resourceApiManagementApiCreateUpdate(d *pluginsdk.ResourceData, meta interf } if v, ok := d.GetOk("terms_of_service_url"); ok { - params.Properties.TermsOfServiceUrl = pointer.To(v.(string)) + params.Properties.TermsOfServiceURL = pointer.To(v.(string)) } if err := client.CreateOrUpdateThenPoll(ctx, newId, params, api.CreateOrUpdateOperationOptions{IfMatch: pointer.To("*")}); err != nil { @@ -560,7 +560,7 @@ func resourceApiManagementApiRead(d *pluginsdk.ResourceData, meta interface{}) e d.Set("is_current", pointer.From(props.IsCurrent)) d.Set("is_online", pointer.From(props.IsOnline)) d.Set("path", props.Path) - d.Set("service_url", pointer.From(props.ServiceUrl)) + d.Set("service_url", pointer.From(props.ServiceURL)) d.Set("revision", pointer.From(props.ApiRevision)) if !features.FourPointOhBeta() { d.Set("soap_pass_through", apiType == string(api.ApiTypeSoap)) @@ -570,7 +570,7 @@ func resourceApiManagementApiRead(d *pluginsdk.ResourceData, meta interface{}) e d.Set("version_set_id", pointer.From(props.ApiVersionSetId)) d.Set("revision_description", pointer.From(props.ApiRevisionDescription)) d.Set("version_description", pointer.From(props.ApiVersionDescription)) - d.Set("terms_of_service_url", pointer.From(props.TermsOfServiceUrl)) + d.Set("terms_of_service_url", pointer.From(props.TermsOfServiceURL)) if err := d.Set("protocols", flattenApiManagementApiProtocols(props.Protocols)); err != nil { return fmt.Errorf("setting `protocols`: %s", err) diff --git a/internal/services/apimanagement/api_management_api_tag_description_resource.go b/internal/services/apimanagement/api_management_api_tag_description_resource.go index d92af077a2ad..42cbdf54d969 100644 --- a/internal/services/apimanagement/api_management_api_tag_description_resource.go +++ b/internal/services/apimanagement/api_management_api_tag_description_resource.go @@ -100,7 +100,7 @@ func resourceApiManagementApiTagDescriptionCreateUpdate(d *pluginsdk.ResourceDat } if v, ok := d.GetOk("external_documentation_url"); ok { - tagDescParameter.Properties.ExternalDocsUrl = pointer.To(v.(string)) + tagDescParameter.Properties.ExternalDocsURL = pointer.To(v.(string)) } if v, ok := d.GetOk("external_documentation_description"); ok { @@ -145,7 +145,7 @@ func resourceApiManagementApiTagDescriptionRead(d *pluginsdk.ResourceData, meta if model := resp.Model; model != nil { if props := model.Properties; props != nil { d.Set("description", pointer.From(props.Description)) - d.Set("external_documentation_url", pointer.From(props.ExternalDocsUrl)) + d.Set("external_documentation_url", pointer.From(props.ExternalDocsURL)) d.Set("external_documentation_description", pointer.From(props.ExternalDocsDescription)) } } diff --git a/internal/services/apimanagement/api_management_data_source.go b/internal/services/apimanagement/api_management_data_source.go index 59f69b7b6754..ed166f706d15 100644 --- a/internal/services/apimanagement/api_management_data_source.go +++ b/internal/services/apimanagement/api_management_data_source.go @@ -269,11 +269,11 @@ func dataSourceApiManagementRead(d *pluginsdk.ResourceData, meta interface{}) er d.Set("publisher_email", model.Properties.PublisherEmail) d.Set("publisher_name", model.Properties.PublisherName) d.Set("notification_sender_email", pointer.From(model.Properties.NotificationSenderEmail)) - d.Set("gateway_url", pointer.From(model.Properties.GatewayUrl)) - d.Set("gateway_regional_url", pointer.From(model.Properties.GatewayRegionalUrl)) - d.Set("portal_url", pointer.From(model.Properties.PortalUrl)) - d.Set("developer_portal_url", pointer.From(model.Properties.DeveloperPortalUrl)) - d.Set("management_api_url", pointer.From(model.Properties.ManagementApiUrl)) + d.Set("gateway_url", pointer.From(model.Properties.GatewayURL)) + d.Set("gateway_regional_url", pointer.From(model.Properties.GatewayRegionalURL)) + d.Set("portal_url", pointer.From(model.Properties.PortalURL)) + d.Set("developer_portal_url", pointer.From(model.Properties.DeveloperPortalURL)) + d.Set("management_api_url", pointer.From(model.Properties.ManagementApiURL)) d.Set("scm_url", pointer.From(model.Properties.ScmURL)) d.Set("public_ip_addresses", pointer.From(model.Properties.PublicIPAddresses)) d.Set("public_ip_address_id", pointer.From(model.Properties.PublicIPAddressId)) @@ -376,7 +376,7 @@ func flattenDataSourceApiManagementAdditionalLocations(input *[]apimanagementser for _, prop := range *input { results = append(results, map[string]interface{}{ "capacity": int32(prop.Sku.Capacity), - "gateway_regional_url": pointer.From(prop.GatewayRegionalUrl), + "gateway_regional_url": pointer.From(prop.GatewayRegionalURL), "location": location.NormalizeNilable(pointer.To(prop.Location)), "private_ip_addresses": pointer.From(prop.PrivateIPAddresses), "public_ip_address_id": pointer.From(prop.PublicIPAddressId), diff --git a/internal/services/apimanagement/api_management_diagnostic_resource.go b/internal/services/apimanagement/api_management_diagnostic_resource.go index a199146f66a6..f9386fd5e089 100644 --- a/internal/services/apimanagement/api_management_diagnostic_resource.go +++ b/internal/services/apimanagement/api_management_diagnostic_resource.go @@ -116,7 +116,7 @@ func resourceApiManagementDiagnostic() *pluginsdk.Resource { Optional: true, ValidateFunc: validation.StringInSlice([]string{ string(diagnostic.OperationNameFormatName), - string(diagnostic.OperationNameFormatUrl), + string(diagnostic.OperationNameFormatURL), }, false), }, }, diff --git a/internal/services/apimanagement/api_management_resource.go b/internal/services/apimanagement/api_management_resource.go index bcc12e17f972..a9431e42f508 100644 --- a/internal/services/apimanagement/api_management_resource.go +++ b/internal/services/apimanagement/api_management_resource.go @@ -1291,11 +1291,11 @@ func resourceApiManagementServiceRead(d *pluginsdk.ResourceData, meta interface{ d.Set("publisher_email", model.Properties.PublisherEmail) d.Set("publisher_name", model.Properties.PublisherName) d.Set("notification_sender_email", pointer.From(model.Properties.NotificationSenderEmail)) - d.Set("gateway_url", pointer.From(model.Properties.GatewayUrl)) - d.Set("gateway_regional_url", pointer.From(model.Properties.GatewayRegionalUrl)) - d.Set("portal_url", pointer.From(model.Properties.PortalUrl)) - d.Set("developer_portal_url", pointer.From(model.Properties.DeveloperPortalUrl)) - d.Set("management_api_url", pointer.From(model.Properties.ManagementApiUrl)) + d.Set("gateway_url", pointer.From(model.Properties.GatewayURL)) + d.Set("gateway_regional_url", pointer.From(model.Properties.GatewayRegionalURL)) + d.Set("portal_url", pointer.From(model.Properties.PortalURL)) + d.Set("developer_portal_url", pointer.From(model.Properties.DeveloperPortalURL)) + d.Set("management_api_url", pointer.From(model.Properties.ManagementApiURL)) d.Set("scm_url", pointer.From(model.Properties.ScmURL)) d.Set("public_ip_addresses", pointer.From(model.Properties.PublicIPAddresses)) d.Set("public_ip_address_id", pointer.From(model.Properties.PublicIPAddressId)) @@ -1743,7 +1743,7 @@ func flattenApiManagementAdditionalLocations(input *[]apimanagementservice.Addit results = append(results, map[string]interface{}{ "capacity": int32(prop.Sku.Capacity), - "gateway_regional_url": pointer.From(prop.GatewayRegionalUrl), + "gateway_regional_url": pointer.From(prop.GatewayRegionalURL), "location": location.NormalizeNilable(pointer.To(prop.Location)), "private_ip_addresses": pointer.From(prop.PrivateIPAddresses), "public_ip_address_id": pointer.From(prop.PublicIPAddressId), From 23fc4da51d7354a790bd205f46602cd7f61dfd7b Mon Sep 17 00:00:00 2001 From: Zsolt Fejer Date: Mon, 28 Oct 2024 11:52:16 +0000 Subject: [PATCH 6/6] upgrade SDK API version --- .../api_management_api_data_source.go | 2 +- .../api_management_api_diagnostic_resource.go | 4 +- ...management_api_diagnostic_resource_test.go | 2 +- ...anagement_api_operation_policy_resource.go | 2 +- ...ment_api_operation_policy_resource_test.go | 2 +- .../api_management_api_operation_resource.go | 2 +- ..._management_api_operation_resource_test.go | 2 +- ...i_management_api_operation_tag_resource.go | 4 +- ...agement_api_operation_tag_resource_test.go | 2 +- .../api_management_api_policy_resource.go | 2 +- ...api_management_api_policy_resource_test.go | 2 +- .../api_management_api_release.go | 4 +- ...pi_management_api_release_resource_test.go | 2 +- .../api_management_api_resource.go | 2 +- .../api_management_api_resource_test.go | 2 +- .../api_management_api_schema_resource.go | 2 +- ...api_management_api_schema_resource_test.go | 2 +- ...management_api_tag_description_resource.go | 4 +- ...ement_api_tag_description_resource_test.go | 2 +- .../api_management_api_tag_resource.go | 6 +- .../api_management_api_tag_resource_test.go | 2 +- ..._management_api_version_set_data_source.go | 2 +- ...api_management_api_version_set_resource.go | 4 +- ...anagement_api_version_set_resource_test.go | 2 +- ...anagement_authorization_server_resource.go | 2 +- ...ment_authorization_server_resource_test.go | 2 +- .../api_management_backend_resource.go | 2 +- .../api_management_backend_resource_test.go | 2 +- .../api_management_certificate_resource.go | 2 +- ...pi_management_certificate_resource_test.go | 2 +- .../api_management_custom_domain_resource.go | 2 +- ..._management_custom_domain_resource_test.go | 2 +- .../api_management_data_source.go | 4 +- .../api_management_diagnostic_resource.go | 4 +- ...api_management_diagnostic_resource_test.go | 2 +- .../api_management_email_template_resource.go | 2 +- ...management_email_template_resource_test.go | 2 +- .../api_management_gateway_api_resource.go | 10 +- ...pi_management_gateway_api_resource_test.go | 2 +- ..._gateway_certificate_authority_resource.go | 4 +- ...way_certificate_authority_resource_test.go | 2 +- .../api_management_gateway_data_source.go | 8 +- ...way_host_name_configuration_data_source.go | 4 +- ...ateway_host_name_configuration_resource.go | 4 +- ...y_host_name_configuration_resource_test.go | 2 +- .../api_management_gateway_resource.go | 12 +- .../api_management_gateway_resource_test.go | 4 +- .../api_management_global_schema_resource.go | 2 +- ..._management_global_schema_resource_test.go | 2 +- .../api_management_group_data_source.go | 2 +- .../api_management_group_resource.go | 2 +- .../api_management_group_resource_test.go | 2 +- .../api_management_group_user_resource.go | 2 +- ...api_management_group_user_resource_test.go | 2 +- ...nagement_identity_provider_aad_resource.go | 2 +- ...ent_identity_provider_aad_resource_test.go | 2 +- ...ement_identity_provider_aadb2c_resource.go | 2 +- ..._identity_provider_aadb2c_resource_test.go | 2 +- ...ent_identity_provider_facebook_resource.go | 2 +- ...dentity_provider_facebook_resource_test.go | 2 +- ...ement_identity_provider_google_resource.go | 2 +- ..._identity_provider_google_resource_test.go | 2 +- ...nt_identity_provider_microsoft_resource.go | 2 +- ...entity_provider_microsoft_resource_test.go | 2 +- ...ment_identity_provider_twitter_resource.go | 2 +- ...identity_provider_twitter_resource_test.go | 2 +- .../api_management_logger_resource.go | 2 +- .../api_management_logger_resource_test.go | 2 +- .../api_management_named_value_resource.go | 2 +- ...pi_management_named_value_resource_test.go | 2 +- ...management_notification_recipient_email.go | 4 +- ...ement_notification_recipient_email_test.go | 2 +- ..._management_notification_recipient_user.go | 4 +- ...gement_notification_recipient_user_test.go | 2 +- ...gement_openid_connect_provider_resource.go | 2 +- ...t_openid_connect_provider_resource_test.go | 2 +- ...api_management_policy_fragment_resource.go | 4 +- ...anagement_policy_fragment_resource_test.go | 2 +- .../api_management_policy_resource.go | 4 +- .../api_management_policy_resource_test.go | 4 +- .../api_management_product_api_resource.go | 2 +- ...pi_management_product_api_resource_test.go | 2 +- .../api_management_product_data_source.go | 2 +- .../api_management_product_group_resource.go | 2 +- ..._management_product_group_resource_test.go | 2 +- .../api_management_product_policy_resource.go | 2 +- ...management_product_policy_resource_test.go | 2 +- .../api_management_product_resource.go | 2 +- .../api_management_product_resource_test.go | 2 +- .../api_management_product_tag_resource.go | 2 +- ...pi_management_product_tag_resource_test.go | 2 +- .../api_management_redis_cache_resource.go | 4 +- ...pi_management_redis_cache_resource_test.go | 2 +- .../apimanagement/api_management_resource.go | 18 +- .../api_management_resource_test.go | 6 +- .../api_management_subscription_resource.go | 6 +- ...i_management_subscription_resource_test.go | 2 +- .../api_management_tag_resource.go | 4 +- .../api_management_tag_resource_test.go | 2 +- .../api_management_user_data_source.go | 2 +- .../api_management_user_resource.go | 2 +- .../api_management_user_resource_test.go | 2 +- .../services/apimanagement/client/client.go | 94 +++---- .../apimanagement/identity_provider_import.go | 2 +- .../api_operation_policy_v1_to_v2.go | 2 +- .../migration/api_policy_v1_to_v2.go | 2 +- .../migration/api_product_policy_v1_to_v2.go | 2 +- .../apimanagement/migration/policy.go | 2 +- .../migration/policy_v2_to_v3.go | 2 +- .../apimanagement/schemaz/api_management.go | 2 +- .../apidiagnostic/README.md | 119 --------- .../2023-05-01-preview/backend/README.md | 119 --------- .../2023-05-01-preview/certificate/README.md | 114 --------- .../2023-05-01-preview/diagnostic/README.md | 119 --------- .../2023-05-01-preview/logger/README.md | 119 --------- .../api/README.md | 30 +-- .../api/client.go | 0 .../api/constants.go | 0 .../api/id_api.go | 0 .../api/id_service.go | 0 .../api/id_workspace.go | 8 +- .../api/id_workspaceapi.go | 10 +- .../api/method_createorupdate.go | 0 .../api/method_delete.go | 0 .../api/method_get.go | 0 .../api/method_getentitytag.go | 0 .../api/method_listbyservice.go | 0 .../api/method_update.go | 0 .../api/method_workspaceapicreateorupdate.go | 1 + .../api/method_workspaceapidelete.go | 1 + .../api/method_workspaceapiget.go | 1 - .../api/method_workspaceapigetentitytag.go | 0 .../api/method_workspaceapilistbyservice.go | 1 + .../api/method_workspaceapiupdate.go | 2 +- .../api/model_apicontactinformation.go | 0 .../api/model_apicontract.go | 0 .../api/model_apicontractproperties.go | 2 +- .../api/model_apicontractupdateproperties.go | 0 .../api/model_apicreateorupdateparameter.go | 0 .../api/model_apicreateorupdateproperties.go | 2 +- ...apicreateorupdatepropertieswsdlselector.go | 0 .../api/model_apilicenseinformation.go | 0 .../api/model_apiupdatecontract.go | 0 .../api/model_apiversionsetcontractdetails.go | 0 .../model_authenticationsettingscontract.go | 0 ...el_oauth2authenticationsettingscontract.go | 0 ...el_openidauthenticationsettingscontract.go | 0 ...l_subscriptionkeyparameternamescontract.go | 0 .../api/predicates.go | 0 .../api/version.go | 4 +- .../2024-05-01/apidiagnostic/README.md | 234 ++++++++++++++++++ .../apidiagnostic/client.go | 0 .../apidiagnostic/constants.go | 0 .../apidiagnostic/id_api.go | 0 .../apidiagnostic/id_apidiagnostic.go | 0 .../apidiagnostic/id_workspaceapi.go | 148 +++++++++++ .../id_workspaceapidiagnostic.go | 157 ++++++++++++ .../apidiagnostic/method_createorupdate.go | 0 .../apidiagnostic/method_delete.go | 0 .../apidiagnostic/method_get.go | 0 .../apidiagnostic/method_getentitytag.go | 0 .../apidiagnostic/method_listbyservice.go | 0 .../apidiagnostic/method_update.go | 0 ...od_workspaceapidiagnosticcreateorupdate.go | 88 +++++++ .../method_workspaceapidiagnosticdelete.go | 77 ++++++ .../method_workspaceapidiagnosticget.go | 53 ++++ ...thod_workspaceapidiagnosticgetentitytag.go | 46 ++++ ...d_workspaceapidiagnosticlistbyworkspace.go | 142 +++++++++++ .../method_workspaceapidiagnosticupdate.go | 87 +++++++ .../model_bodydiagnosticsettings.go | 0 .../apidiagnostic/model_datamasking.go | 0 .../apidiagnostic/model_datamaskingentity.go | 0 .../apidiagnostic/model_diagnosticcontract.go | 0 .../model_diagnosticcontractproperties.go | 0 ...odel_diagnosticcontractupdateproperties.go | 17 ++ .../model_diagnosticupdatecontract.go | 11 + .../model_httpmessagediagnostic.go | 0 .../model_pipelinediagnosticsettings.go | 0 .../apidiagnostic/model_samplingsettings.go | 0 .../apidiagnostic/predicates.go | 0 .../apidiagnostic/version.go | 4 +- .../apimanagementservice/README.md | 21 +- .../apimanagementservice/client.go | 0 .../apimanagementservice/constants.go | 0 .../apimanagementservice/id_service.go | 0 ...method_applynetworkconfigurationupdates.go | 0 .../apimanagementservice/method_backup.go | 0 .../method_checknameavailability.go | 0 .../method_createorupdate.go | 0 .../apimanagementservice/method_delete.go | 0 .../apimanagementservice/method_get.go | 0 .../method_getdomainownershipidentifier.go | 0 .../method_getssotoken.go | 0 .../apimanagementservice/method_list.go | 0 .../method_listbyresourcegroup.go | 0 .../method_migratetostv2.go | 0 .../apimanagementservice/method_restore.go | 0 .../apimanagementservice/method_update.go | 0 .../model_additionallocation.go | 0 ...viceapplynetworkconfigurationparameters.go | 0 ...anagementservicebackuprestoreparameters.go | 0 ...tservicechecknameavailabilityparameters.go | 0 ...rvicegetdomainownershipidentifierresult.go | 0 ...l_apimanagementservicegetssotokenresult.go | 0 ...managementservicenameavailabilityresult.go | 0 .../model_apimanagementserviceproperties.go | 4 +- .../model_apimanagementserviceresource.go | 0 ...model_apimanagementserviceskuproperties.go | 0 ...el_apimanagementserviceupdateparameters.go | 0 ...el_apimanagementserviceupdateproperties.go | 4 +- .../model_apiversionconstraint.go | 0 .../model_armidwrapper.go | 0 .../model_certificateconfiguration.go | 0 .../model_certificateinformation.go | 0 .../model_configurationapi.go | 0 .../model_hostnameconfiguration.go | 0 .../model_migratetostv2contract.go | 0 ...vateendpointconnectionwrapperproperties.go | 0 ...model_privatelinkserviceconnectionstate.go | 0 ..._remoteprivateendpointconnectionwrapper.go | 0 .../model_virtualnetworkconfiguration.go | 0 .../apimanagementservice/predicates.go | 0 .../apimanagementservice/version.go | 4 +- .../apioperation/README.md | 30 +-- .../apioperation/client.go | 0 .../apioperation/id_api.go | 0 .../apioperation/id_apioperation.go | 12 +- .../apioperation/id_operation.go | 0 .../apioperation/id_workspaceapi.go | 10 +- .../apioperation/method_createorupdate.go | 0 .../apioperation/method_delete.go | 0 .../apioperation/method_get.go | 0 .../apioperation/method_getentitytag.go | 0 .../apioperation/method_listbyapi.go | 0 .../apioperation/method_update.go | 0 ...hod_workspaceapioperationcreateorupdate.go | 2 +- .../method_workspaceapioperationdelete.go | 1 + .../method_workspaceapioperationget.go | 1 - ...ethod_workspaceapioperationgetentitytag.go | 0 .../method_workspaceapioperationlistbyapi.go | 1 + .../method_workspaceapioperationupdate.go | 2 +- .../apioperation/model_operationcontract.go | 0 .../model_operationcontractproperties.go | 0 .../model_operationupdatecontract.go | 0 ...model_operationupdatecontractproperties.go | 0 .../apioperation/model_parametercontract.go | 0 .../model_parameterexamplecontract.go | 0 .../model_representationcontract.go | 0 .../apioperation/model_requestcontract.go | 0 .../apioperation/model_responsecontract.go | 0 .../apioperation/predicates.go | 0 .../apioperation/version.go | 4 +- .../apioperationpolicy/README.md | 26 +- .../apioperationpolicy/client.go | 0 .../apioperationpolicy/constants.go | 0 .../apioperationpolicy/id_apioperation.go | 12 +- .../apioperationpolicy/id_operation.go | 0 .../method_createorupdate.go | 0 .../apioperationpolicy/method_delete.go | 0 .../apioperationpolicy/method_get.go | 0 .../apioperationpolicy/method_getentitytag.go | 0 .../method_listbyoperation.go | 0 ...rkspaceapioperationpolicycreateorupdate.go | 2 +- ...ethod_workspaceapioperationpolicydelete.go | 1 + .../method_workspaceapioperationpolicyget.go | 2 +- ...workspaceapioperationpolicygetentitytag.go | 0 ...kspaceapioperationpolicylistbyoperation.go | 0 .../model_policycontract.go | 0 .../model_policycontractproperties.go | 0 .../apioperationpolicy/predicates.go | 0 .../apioperationpolicy/version.go | 4 +- .../apioperationtag/README.md | 13 +- .../apioperationtag/client.go | 0 .../apioperationtag/id_operation.go | 0 .../apioperationtag/id_operationtag.go | 0 .../method_tagassigntooperation.go | 0 .../method_tagdetachfromoperation.go | 0 .../method_taggetbyoperation.go | 0 .../method_taggetentitystatebyoperation.go | 0 .../method_taglistbyoperation.go | 0 .../apioperationtag/model_tagcontract.go | 0 .../model_tagcontractproperties.go | 0 .../apioperationtag/predicates.go | 0 .../apioperationtag/version.go | 4 +- .../apipolicy/README.md | 26 +- .../apipolicy/client.go | 0 .../apipolicy/constants.go | 0 .../apipolicy/id_api.go | 0 .../apipolicy/id_workspaceapi.go | 10 +- .../apipolicy/method_createorupdate.go | 0 .../apipolicy/method_delete.go | 0 .../apipolicy/method_get.go | 0 .../apipolicy/method_getentitytag.go | 0 .../apipolicy/method_listbyapi.go | 0 ...method_workspaceapipolicycreateorupdate.go | 2 +- .../method_workspaceapipolicydelete.go | 1 + .../apipolicy/method_workspaceapipolicyget.go | 2 +- .../method_workspaceapipolicygetentitytag.go | 0 .../method_workspaceapipolicylistbyapi.go | 0 .../apipolicy/model_policycontract.go | 0 .../model_policycontractproperties.go | 0 .../apipolicy/predicates.go | 0 .../apipolicy/version.go | 4 +- .../apirelease/README.md | 30 +-- .../apirelease/client.go | 0 .../apirelease/id_api.go | 0 .../apirelease/id_apirelease.go | 12 +- .../apirelease/id_release.go | 0 .../apirelease/id_workspaceapi.go | 10 +- .../apirelease/method_createorupdate.go | 0 .../apirelease/method_delete.go | 0 .../apirelease/method_get.go | 0 .../apirelease/method_getentitytag.go | 0 .../apirelease/method_listbyservice.go | 0 .../apirelease/method_update.go | 0 ...ethod_workspaceapireleasecreateorupdate.go | 2 +- .../method_workspaceapireleasedelete.go | 1 + .../method_workspaceapireleaseget.go | 1 - .../method_workspaceapireleasegetentitytag.go | 0 ...method_workspaceapireleaselistbyservice.go | 1 + .../method_workspaceapireleaseupdate.go | 2 +- .../apirelease/model_apireleasecontract.go | 0 .../model_apireleasecontractproperties.go | 0 .../apirelease/predicates.go | 0 .../apirelease/version.go | 4 +- .../apischema/README.md | 26 +- .../apischema/client.go | 0 .../apischema/id_api.go | 0 .../apischema/id_apischema.go | 0 .../apischema/id_workspaceapi.go | 10 +- .../apischema/id_workspaceapischema.go | 12 +- .../apischema/method_createorupdate.go | 0 .../apischema/method_delete.go | 0 .../apischema/method_get.go | 0 .../apischema/method_getentitytag.go | 0 .../apischema/method_listbyapi.go | 0 ...method_workspaceapischemacreateorupdate.go | 1 + .../method_workspaceapischemadelete.go | 1 + .../apischema/method_workspaceapischemaget.go | 1 - .../method_workspaceapischemagetentitytag.go | 0 .../method_workspaceapischemalistbyapi.go | 1 + .../apischema/model_schemacontract.go | 0 .../model_schemacontractproperties.go | 0 .../model_schemadocumentproperties.go | 0 .../apischema/predicates.go | 0 .../apischema/version.go | 4 +- .../apitag/README.md | 13 +- .../apitag/client.go | 0 .../apitag/id_api.go | 0 .../apitag/id_apitag.go | 0 .../apitag/method_tagassigntoapi.go | 0 .../apitag/method_tagdetachfromapi.go | 0 .../apitag/method_taggetbyapi.go | 0 .../apitag/method_taggetentitystatebyapi.go | 0 .../apitag/method_taglistbyapi.go | 0 .../apitag/model_tagcontract.go | 0 .../apitag/model_tagcontractproperties.go | 0 .../apitag/predicates.go | 0 .../apitag/version.go | 4 +- .../apitagdescription/README.md | 13 +- .../apitagdescription/client.go | 0 .../apitagdescription/id_api.go | 0 .../apitagdescription/id_tagdescription.go | 0 .../method_createorupdate.go | 0 .../apitagdescription/method_delete.go | 0 .../apitagdescription/method_get.go | 0 .../apitagdescription/method_getentitytag.go | 0 .../apitagdescription/method_listbyservice.go | 0 .../model_tagdescriptionbaseproperties.go | 0 .../model_tagdescriptioncontract.go | 0 .../model_tagdescriptioncontractproperties.go | 0 .../model_tagdescriptioncreateparameters.go | 0 .../apitagdescription/predicates.go | 0 .../apitagdescription/version.go | 4 +- .../apiversionset/README.md | 26 +- .../apiversionset/client.go | 0 .../apiversionset/constants.go | 0 .../apiversionset/id_apiversionset.go | 0 .../apiversionset/id_service.go | 0 .../apiversionset/id_workspace.go | 8 +- .../id_workspaceapiversionset.go | 10 +- .../apiversionset/method_createorupdate.go | 0 .../apiversionset/method_get.go | 0 .../apiversionset/method_getentitytag.go | 0 .../apiversionset/method_listbyservice.go | 0 .../apiversionset/method_update.go | 0 ...od_workspaceapiversionsetcreateorupdate.go | 2 +- .../method_workspaceapiversionsetget.go | 1 - ...thod_workspaceapiversionsetgetentitytag.go | 0 ...hod_workspaceapiversionsetlistbyservice.go | 1 + .../method_workspaceapiversionsetupdate.go | 2 +- .../model_apiversionsetcontract.go | 0 .../model_apiversionsetcontractproperties.go | 0 .../model_apiversionsetupdateparameters.go | 0 ...apiversionsetupdateparametersproperties.go | 0 .../apiversionset/predicates.go | 0 .../apiversionset/version.go | 4 +- .../apiversionsets/client.go | 0 .../apiversionsets/id_apiversionset.go | 0 .../id_workspaceapiversionset.go | 10 +- .../method_apiversionsetdelete.go | 0 .../method_workspaceapiversionsetdelete.go | 1 + .../apiversionsets/version.go | 4 +- .../authorizationserver/README.md | 15 +- .../authorizationserver/client.go | 0 .../authorizationserver/constants.go | 0 .../id_authorizationserver.go | 0 .../authorizationserver/id_service.go | 0 .../method_createorupdate.go | 0 .../authorizationserver/method_delete.go | 0 .../authorizationserver/method_get.go | 0 .../method_getentitytag.go | 0 .../method_listbyservice.go | 0 .../authorizationserver/method_listsecrets.go | 0 .../authorizationserver/method_update.go | 0 .../model_authorizationservercontract.go | 0 ...l_authorizationservercontractproperties.go | 0 ...odel_authorizationserversecretscontract.go | 0 ...model_authorizationserverupdatecontract.go | 0 ...orizationserverupdatecontractproperties.go | 0 .../model_tokenbodyparametercontract.go | 0 .../authorizationserver/predicates.go | 0 .../authorizationserver/version.go | 4 +- .../2024-05-01/backend/README.md | 234 ++++++++++++++++++ .../backend/client.go | 0 .../backend/constants.go | 0 .../backend/id_backend.go | 0 .../backend/id_service.go | 0 .../2024-05-01/backend/id_workspace.go | 139 +++++++++++ .../2024-05-01/backend/id_workspacebackend.go | 148 +++++++++++ .../backend/method_createorupdate.go | 0 .../backend/method_delete.go | 0 .../backend/method_get.go | 0 .../backend/method_getentitytag.go | 0 .../backend/method_listbyservice.go | 0 .../backend/method_update.go | 0 .../method_workspacebackendcreateorupdate.go | 88 +++++++ .../backend/method_workspacebackenddelete.go | 77 ++++++ .../backend/method_workspacebackendget.go | 53 ++++ .../method_workspacebackendgetentitytag.go | 46 ++++ .../method_workspacebackendlistbyworkspace.go | 142 +++++++++++ .../backend/method_workspacebackendupdate.go | 87 +++++++ ...l_backendauthorizationheadercredentials.go | 0 .../model_backendbaseparameterspool.go | 0 .../backend/model_backendcircuitbreaker.go | 0 .../backend/model_backendcontract.go | 0 .../model_backendcontractproperties.go | 0 .../model_backendcredentialscontract.go | 0 .../backend/model_backendpoolitem.go | 4 +- .../backend/model_backendproperties.go | 0 .../backend/model_backendproxycontract.go | 0 ...l_backendservicefabricclusterproperties.go | 0 .../backend/model_backendtlsproperties.go | 0 .../model_backendupdateparameterproperties.go | 0 .../backend/model_backendupdateparameters.go | 0 .../model_circuitbreakerfailurecondition.go | 0 .../backend/model_circuitbreakerrule.go | 1 + .../backend/model_failurestatuscoderange.go | 0 .../backend/model_x509certificatename.go | 0 .../backend/predicates.go | 0 .../backend/version.go | 4 +- .../cache/README.md | 14 +- .../cache/client.go | 0 .../cache/id_cache.go | 0 .../cache/id_service.go | 0 .../cache/method_createorupdate.go | 0 .../cache/method_delete.go | 0 .../cache/method_get.go | 0 .../cache/method_getentitytag.go | 0 .../cache/method_listbyservice.go | 0 .../cache/method_update.go | 0 .../cache/model_cachecontract.go | 0 .../cache/model_cachecontractproperties.go | 0 .../cache/model_cacheupdateparameters.go | 0 .../cache/model_cacheupdateproperties.go | 0 .../cache/predicates.go | 0 .../cache/version.go | 4 +- .../2024-05-01/certificate/README.md | 224 +++++++++++++++++ .../certificate/client.go | 0 .../certificate/id_certificate.go | 0 .../certificate/id_service.go | 0 .../2024-05-01/certificate/id_workspace.go | 139 +++++++++++ .../certificate/id_workspacecertificate.go | 148 +++++++++++ .../certificate/method_createorupdate.go | 0 .../certificate/method_delete.go | 0 .../certificate/method_get.go | 0 .../certificate/method_getentitytag.go | 0 .../certificate/method_listbyservice.go | 0 .../certificate/method_refreshsecret.go | 0 ...thod_workspacecertificatecreateorupdate.go | 88 +++++++ .../method_workspacecertificatedelete.go | 77 ++++++ .../method_workspacecertificateget.go | 53 ++++ ...method_workspacecertificategetentitytag.go | 46 ++++ ...hod_workspacecertificatelistbyworkspace.go | 146 +++++++++++ ...ethod_workspacecertificaterefreshsecret.go | 54 ++++ .../certificate/model_certificatecontract.go | 0 .../model_certificatecontractproperties.go | 0 ...del_certificatecreateorupdateparameters.go | 0 ...del_certificatecreateorupdateproperties.go | 0 .../model_keyvaultcontractcreateproperties.go | 0 .../model_keyvaultcontractproperties.go | 0 ...vaultlastaccessstatuscontractproperties.go | 0 .../certificate/predicates.go | 0 .../certificate/version.go | 4 +- .../delegationsettings/README.md | 13 +- .../delegationsettings/client.go | 0 .../delegationsettings/id_service.go | 0 .../method_createorupdate.go | 0 .../delegationsettings/method_get.go | 0 .../delegationsettings/method_getentitytag.go | 0 .../delegationsettings/method_listsecrets.go | 0 .../delegationsettings/method_update.go | 0 .../model_portaldelegationsettings.go | 0 ...odel_portaldelegationsettingsproperties.go | 0 ...odel_portalsettingvalidationkeycontract.go | 0 ...egistrationdelegationsettingsproperties.go | 0 ...bscriptionsdelegationsettingsproperties.go | 0 .../delegationsettings/version.go | 4 +- .../deletedservice/README.md | 11 +- .../deletedservice/client.go | 0 .../deletedservice/id_deletedservice.go | 0 .../deletedservice/method_getbyname.go | 0 .../method_listbysubscription.go | 0 .../deletedservice/method_purge.go | 0 .../model_deletedservicecontract.go | 0 .../model_deletedservicecontractproperties.go | 0 .../deletedservice/predicates.go | 0 .../deletedservice/version.go | 4 +- .../2024-05-01/diagnostic/README.md | 234 ++++++++++++++++++ .../diagnostic/client.go | 0 .../diagnostic/constants.go | 0 .../diagnostic/id_diagnostic.go | 0 .../diagnostic/id_service.go | 0 .../2024-05-01/diagnostic/id_workspace.go | 139 +++++++++++ .../diagnostic/id_workspacediagnostic.go | 148 +++++++++++ .../diagnostic/method_createorupdate.go | 0 .../diagnostic/method_delete.go | 0 .../diagnostic/method_get.go | 0 .../diagnostic/method_getentitytag.go | 0 .../diagnostic/method_listbyservice.go | 0 .../diagnostic/method_update.go | 0 ...ethod_workspacediagnosticcreateorupdate.go | 88 +++++++ .../method_workspacediagnosticdelete.go | 77 ++++++ .../method_workspacediagnosticget.go | 53 ++++ .../method_workspacediagnosticgetentitytag.go | 46 ++++ ...thod_workspacediagnosticlistbyworkspace.go | 142 +++++++++++ .../method_workspacediagnosticupdate.go | 87 +++++++ .../model_bodydiagnosticsettings.go | 0 .../diagnostic/model_datamasking.go | 0 .../diagnostic/model_datamaskingentity.go | 0 .../diagnostic/model_diagnosticcontract.go | 0 .../model_diagnosticcontractproperties.go | 0 ...odel_diagnosticcontractupdateproperties.go | 17 ++ .../model_diagnosticupdatecontract.go | 11 + .../diagnostic/model_httpmessagediagnostic.go | 0 .../model_pipelinediagnosticsettings.go | 0 .../diagnostic/model_samplingsettings.go | 0 .../diagnostic/predicates.go | 0 .../diagnostic/version.go | 4 +- .../emailtemplates/README.md | 13 +- .../emailtemplates/client.go | 0 .../emailtemplates/constants.go | 0 .../emailtemplates/id_template.go | 0 .../method_emailtemplatecreateorupdate.go | 0 .../method_emailtemplatedelete.go | 0 .../emailtemplates/method_emailtemplateget.go | 0 .../method_emailtemplategetentitytag.go | 0 .../method_emailtemplateupdate.go | 0 .../model_emailtemplatecontract.go | 0 .../model_emailtemplatecontractproperties.go | 0 ...ailtemplateparameterscontractproperties.go | 0 ..._emailtemplateupdateparameterproperties.go | 0 .../model_emailtemplateupdateparameters.go | 0 .../emailtemplates/version.go | 4 +- .../gateway/README.md | 24 +- .../gateway/client.go | 0 .../gateway/id_service.go | 0 .../gateway/id_servicegateway.go} | 52 ++-- .../gateway/method_createorupdate.go | 2 +- .../gateway/method_delete.go | 2 +- .../gateway/method_get.go | 2 +- .../gateway/method_getentitytag.go | 2 +- .../gateway/method_listbyservice.go | 0 .../gateway/method_update.go | 2 +- .../gateway/model_gatewaycontract.go | 0 .../model_gatewaycontractproperties.go | 0 .../model_resourcelocationdatacontract.go | 0 .../gateway/predicates.go | 0 .../gateway/version.go | 4 +- .../gatewayapi/README.md | 14 +- .../gatewayapi/client.go | 0 .../gatewayapi/constants.go | 0 .../gatewayapi/id_gatewayapi.go | 0 .../gatewayapi/id_servicegateway.go} | 52 ++-- .../gatewayapi/method_createorupdate.go | 0 .../gatewayapi/method_delete.go | 0 .../gatewayapi/method_getentitytag.go | 0 .../gatewayapi/method_listbyservice.go | 6 +- .../gatewayapi/model_apicontactinformation.go | 0 .../gatewayapi/model_apicontract.go | 0 .../gatewayapi/model_apicontractproperties.go | 2 +- .../gatewayapi/model_apilicenseinformation.go | 0 .../model_apiversionsetcontractdetails.go | 0 .../gatewayapi/model_associationcontract.go | 0 .../model_associationcontractproperties.go | 0 .../model_authenticationsettingscontract.go | 0 ...el_oauth2authenticationsettingscontract.go | 0 ...el_openidauthenticationsettingscontract.go | 0 ...l_subscriptionkeyparameternamescontract.go | 0 .../gatewayapi/predicates.go | 0 .../gatewayapi/version.go | 4 +- .../gatewaycertificateauthority/README.md | 15 +- .../gatewaycertificateauthority/client.go | 0 .../id_certificateauthority.go | 0 .../id_servicegateway.go} | 52 ++-- .../method_createorupdate.go | 0 .../method_delete.go | 0 .../gatewaycertificateauthority/method_get.go | 0 .../method_getentitytag.go | 0 .../method_listbyservice.go | 6 +- ...del_gatewaycertificateauthoritycontract.go | 0 ...ycertificateauthoritycontractproperties.go | 0 .../gatewaycertificateauthority/predicates.go | 0 .../gatewaycertificateauthority/version.go | 4 +- .../gatewayhostnameconfiguration/README.md | 15 +- .../gatewayhostnameconfiguration/client.go | 0 .../id_hostnameconfiguration.go | 0 .../id_servicegateway.go} | 52 ++-- .../method_createorupdate.go | 0 .../method_delete.go | 0 .../method_get.go | 0 .../method_getentitytag.go | 0 .../method_listbyservice.go | 6 +- ...el_gatewayhostnameconfigurationcontract.go | 0 ...hostnameconfigurationcontractproperties.go | 0 .../predicates.go | 0 .../gatewayhostnameconfiguration/version.go | 4 +- .../group/README.md | 30 +-- .../group/client.go | 0 .../group/constants.go | 0 .../group/id_group.go | 0 .../group/id_service.go | 0 .../group/id_workspace.go | 8 +- .../group/id_workspacegroup.go | 10 +- .../group/method_createorupdate.go | 0 .../group/method_delete.go | 0 .../group/method_get.go | 0 .../group/method_getentitytag.go | 0 .../group/method_listbyservice.go | 0 .../group/method_update.go | 0 .../method_workspacegroupcreateorupdate.go | 2 +- .../group/method_workspacegroupdelete.go | 1 + .../group/method_workspacegroupget.go | 1 - .../method_workspacegroupgetentitytag.go | 0 .../method_workspacegrouplistbyservice.go | 1 + .../group/method_workspacegroupupdate.go | 2 +- .../group/model_groupcontract.go | 0 .../group/model_groupcontractproperties.go | 0 .../group/model_groupcreateparameters.go | 0 .../model_groupcreateparametersproperties.go | 0 .../group/model_groupupdateparameters.go | 0 .../model_groupupdateparametersproperties.go | 0 .../group/predicates.go | 0 .../group/version.go | 4 +- .../groupuser/README.md | 24 +- .../groupuser/client.go | 0 .../groupuser/constants.go | 0 .../groupuser/id_group.go | 0 .../groupuser/id_groupuser.go | 0 .../groupuser/id_workspacegroup.go | 10 +- .../groupuser/id_workspacegroupuser.go | 12 +- .../groupuser/method_checkentityexists.go | 0 .../groupuser/method_create.go | 0 .../groupuser/method_delete.go | 0 .../groupuser/method_list.go | 0 ...hod_workspacegroupusercheckentityexists.go | 0 .../method_workspacegroupusercreate.go | 1 - .../method_workspacegroupuserdelete.go | 0 .../method_workspacegroupuserlist.go | 1 + .../model_groupcontractproperties.go | 0 .../groupuser/model_usercontract.go | 0 .../groupuser/model_usercontractproperties.go | 0 .../groupuser/model_useridentitycontract.go | 0 .../groupuser/predicates.go | 0 .../groupuser/version.go | 4 +- .../identityprovider/README.md | 15 +- .../identityprovider/client.go | 0 .../identityprovider/constants.go | 0 .../identityprovider/id_identityprovider.go | 0 .../identityprovider/id_service.go | 0 .../identityprovider/method_createorupdate.go | 0 .../identityprovider/method_delete.go | 0 .../identityprovider/method_get.go | 0 .../identityprovider/method_getentitytag.go | 0 .../identityprovider/method_listbyservice.go | 0 .../identityprovider/method_listsecrets.go | 0 .../identityprovider/method_update.go | 0 .../model_clientsecretcontract.go | 0 .../model_identityprovidercontract.go | 0 ...odel_identityprovidercontractproperties.go | 0 .../model_identityprovidercreatecontract.go | 0 ...dentityprovidercreatecontractproperties.go | 0 .../model_identityproviderupdateparameters.go | 0 .../model_identityproviderupdateproperties.go | 0 .../identityprovider/predicates.go | 0 .../identityprovider/version.go | 4 +- .../apimanagement/2024-05-01/logger/README.md | 234 ++++++++++++++++++ .../logger/client.go | 0 .../logger/constants.go | 0 .../logger/id_logger.go | 0 .../logger/id_service.go | 0 .../2024-05-01/logger/id_workspace.go | 139 +++++++++++ .../2024-05-01/logger/id_workspacelogger.go | 148 +++++++++++ .../logger/method_createorupdate.go | 0 .../logger/method_delete.go | 0 .../logger/method_get.go | 0 .../logger/method_getentitytag.go | 0 .../logger/method_listbyservice.go | 0 .../logger/method_update.go | 0 .../method_workspaceloggercreateorupdate.go | 88 +++++++ .../logger/method_workspaceloggerdelete.go | 77 ++++++ .../logger/method_workspaceloggerget.go | 53 ++++ .../method_workspaceloggergetentitytag.go | 46 ++++ .../method_workspaceloggerlistbyworkspace.go | 142 +++++++++++ .../logger/method_workspaceloggerupdate.go | 87 +++++++ .../logger/model_loggercontract.go | 0 .../logger/model_loggercontractproperties.go | 0 .../logger/model_loggerupdatecontract.go | 0 .../logger/model_loggerupdateparameters.go | 0 .../logger/predicates.go | 0 .../logger/version.go | 4 +- .../namedvalue/README.md | 38 +-- .../namedvalue/client.go | 0 .../namedvalue/constants.go | 0 .../namedvalue/id_namedvalue.go | 0 .../namedvalue/id_service.go | 0 .../namedvalue/id_workspace.go | 8 +- .../namedvalue/id_workspacenamedvalue.go | 10 +- .../namedvalue/method_createorupdate.go | 0 .../namedvalue/method_delete.go | 0 .../namedvalue/method_get.go | 0 .../namedvalue/method_getentitytag.go | 0 .../namedvalue/method_listbyservice.go | 0 .../namedvalue/method_listvalue.go | 0 .../namedvalue/method_refreshsecret.go | 0 .../namedvalue/method_update.go | 0 ...ethod_workspacenamedvaluecreateorupdate.go | 1 + .../method_workspacenamedvaluedelete.go | 1 + .../method_workspacenamedvalueget.go | 1 - .../method_workspacenamedvaluegetentitytag.go | 0 ...method_workspacenamedvaluelistbyservice.go | 1 + .../method_workspacenamedvaluelistvalue.go | 1 - ...method_workspacenamedvaluerefreshsecret.go | 0 .../method_workspacenamedvalueupdate.go | 1 + .../model_keyvaultcontractcreateproperties.go | 0 .../model_keyvaultcontractproperties.go | 0 ...vaultlastaccessstatuscontractproperties.go | 0 .../namedvalue/model_namedvaluecontract.go | 0 .../model_namedvaluecontractproperties.go | 0 .../model_namedvaluecreatecontract.go | 0 ...odel_namedvaluecreatecontractproperties.go | 0 .../model_namedvaluesecretcontract.go | 0 ...del_namedvalueupdateparameterproperties.go | 0 .../model_namedvalueupdateparameters.go | 0 .../namedvalue/predicates.go | 0 .../namedvalue/version.go | 4 +- .../notificationrecipientemail/README.md | 30 ++- .../notificationrecipientemail/client.go | 0 .../notificationrecipientemail/constants.go | 0 .../id_notification.go | 0 .../id_notificationnotification.go | 8 +- .../id_notificationrecipientemail.go | 10 +- .../id_recipientemail.go | 0 .../method_checkentityexists.go | 0 .../method_createorupdate.go | 0 .../method_delete.go | 0 .../method_listbynotification.go | 0 ...ficationrecipientemailcheckentityexists.go | 0 ...otificationrecipientemailcreateorupdate.go | 1 - ...rkspacenotificationrecipientemaildelete.go | 0 ...icationrecipientemaillistbynotification.go | 0 .../model_recipientemailcontract.go | 0 .../model_recipientemailcontractproperties.go | 0 .../notificationrecipientemail/predicates.go | 0 .../notificationrecipientemail/version.go | 4 +- .../notificationrecipientuser/README.md | 24 +- .../notificationrecipientuser/client.go | 0 .../notificationrecipientuser/constants.go | 0 .../id_notification.go | 0 .../id_notificationnotification.go | 8 +- .../id_notificationrecipientuser.go | 10 +- .../id_recipientuser.go | 0 .../method_checkentityexists.go | 0 .../method_createorupdate.go | 0 .../method_delete.go | 0 .../method_listbynotification.go | 0 ...ificationrecipientusercheckentityexists.go | 0 ...notificationrecipientusercreateorupdate.go | 1 - ...orkspacenotificationrecipientuserdelete.go | 0 ...ficationrecipientuserlistbynotification.go | 0 .../model_recipientusercontract.go | 0 .../model_recipientuserscontractproperties.go | 0 .../notificationrecipientuser/predicates.go | 0 .../notificationrecipientuser/version.go | 4 +- .../openidconnectprovider/README.md | 15 +- .../openidconnectprovider/client.go | 0 .../id_openidconnectprovider.go | 0 .../openidconnectprovider/id_service.go | 0 .../method_createorupdate.go | 0 .../openidconnectprovider/method_delete.go | 0 .../openidconnectprovider/method_get.go | 0 .../method_getentitytag.go | 0 .../method_listbyservice.go | 0 .../method_listsecrets.go | 0 .../openidconnectprovider/method_update.go | 0 .../model_clientsecretcontract.go | 0 .../model_openidconnectprovidercontract.go | 0 ...openidconnectprovidercontractproperties.go | 0 ...del_openidconnectproviderupdatecontract.go | 0 ...connectproviderupdatecontractproperties.go | 0 .../openidconnectprovider/predicates.go | 0 .../openidconnectprovider/version.go | 4 +- .../policy/README.md | 13 +- .../policy/client.go | 0 .../policy/constants.go | 0 .../policy/id_service.go | 0 .../policy/method_createorupdate.go | 0 .../policy/method_delete.go | 0 .../policy/method_get.go | 0 .../policy/method_getentitytag.go | 0 .../policy/method_listbyservice.go | 0 .../policy/model_policycontract.go | 0 .../policy/model_policycontractproperties.go | 0 .../policy/predicates.go | 0 .../policy/version.go | 4 +- .../policyfragment/README.md | 30 +-- .../policyfragment/client.go | 0 .../policyfragment/constants.go | 0 .../policyfragment/id_policyfragment.go | 0 .../policyfragment/id_service.go | 0 .../policyfragment/id_workspace.go | 8 +- .../id_workspacepolicyfragment.go | 10 +- .../policyfragment/method_createorupdate.go | 0 .../policyfragment/method_delete.go | 0 .../policyfragment/method_get.go | 0 .../policyfragment/method_getentitytag.go | 0 .../policyfragment/method_listbyservice.go | 0 .../policyfragment/method_listreferences.go | 0 ...d_workspacepolicyfragmentcreateorupdate.go | 1 + .../method_workspacepolicyfragmentdelete.go | 1 + .../method_workspacepolicyfragmentget.go | 2 +- ...hod_workspacepolicyfragmentgetentitytag.go | 0 ...od_workspacepolicyfragmentlistbyservice.go | 1 + ...d_workspacepolicyfragmentlistreferences.go | 1 + .../model_policyfragmentcontract.go | 0 .../model_policyfragmentcontractproperties.go | 0 .../policyfragment/model_resource.go | 0 .../policyfragment/predicates.go | 0 .../policyfragment/version.go | 4 +- .../product/README.md | 30 +-- .../product/client.go | 0 .../product/constants.go | 0 .../product/id_product.go | 0 .../product/id_service.go | 0 .../product/id_workspace.go | 8 +- .../product/id_workspaceproduct.go | 10 +- .../product/method_createorupdate.go | 0 .../product/method_delete.go | 0 .../product/method_get.go | 0 .../product/method_getentitytag.go | 0 .../product/method_listbyservice.go | 0 .../product/method_update.go | 0 .../method_workspaceproductcreateorupdate.go | 2 +- .../product/method_workspaceproductdelete.go | 1 + .../product/method_workspaceproductget.go | 1 - .../method_workspaceproductgetentitytag.go | 0 .../method_workspaceproductlistbyservice.go | 1 + .../product/method_workspaceproductupdate.go | 2 +- .../product/model_productcontract.go | 0 .../model_productcontractproperties.go | 0 .../product/model_productupdateparameters.go | 0 .../product/model_productupdateproperties.go | 0 .../product/predicates.go | 0 .../product/version.go | 4 +- .../productapi/README.md | 12 +- .../productapi/client.go | 0 .../productapi/constants.go | 0 .../productapi/id_product.go | 0 .../productapi/id_productapi.go | 0 .../productapi/method_checkentityexists.go | 0 .../productapi/method_createorupdate.go | 0 .../productapi/method_delete.go | 0 .../productapi/method_listbyproduct.go | 0 .../productapi/model_apicontactinformation.go | 0 .../productapi/model_apicontract.go | 0 .../productapi/model_apicontractproperties.go | 2 +- .../productapi/model_apilicenseinformation.go | 0 .../model_apiversionsetcontractdetails.go | 0 .../model_authenticationsettingscontract.go | 0 ...el_oauth2authenticationsettingscontract.go | 0 ...el_openidauthenticationsettingscontract.go | 0 ...l_subscriptionkeyparameternamescontract.go | 0 .../productapi/predicates.go | 0 .../productapi/version.go | 4 +- .../productgroup/README.md | 12 +- .../productgroup/client.go | 0 .../productgroup/constants.go | 0 .../productgroup/id_product.go | 0 .../productgroup/id_productgroup.go | 0 .../productgroup/method_checkentityexists.go | 0 .../productgroup/method_createorupdate.go | 0 .../productgroup/method_delete.go | 0 .../productgroup/method_listbyproduct.go | 0 .../productgroup/model_groupcontract.go | 0 .../model_groupcontractproperties.go | 0 .../productgroup/predicates.go | 0 .../productgroup/version.go | 4 +- .../productpolicy/README.md | 26 +- .../productpolicy/client.go | 0 .../productpolicy/constants.go | 0 .../productpolicy/id_product.go | 0 .../productpolicy/id_workspaceproduct.go | 10 +- .../productpolicy/method_createorupdate.go | 0 .../productpolicy/method_delete.go | 0 .../productpolicy/method_get.go | 0 .../productpolicy/method_getentitytag.go | 0 .../productpolicy/method_listbyproduct.go | 0 ...od_workspaceproductpolicycreateorupdate.go | 2 +- .../method_workspaceproductpolicydelete.go | 1 + .../method_workspaceproductpolicyget.go | 2 +- ...thod_workspaceproductpolicygetentitytag.go | 0 ...hod_workspaceproductpolicylistbyproduct.go | 0 .../productpolicy/model_policycontract.go | 0 .../model_policycontractproperties.go | 0 .../productpolicy/predicates.go | 0 .../productpolicy/version.go | 4 +- .../producttag/README.md | 13 +- .../producttag/client.go | 0 .../producttag/id_product.go | 0 .../producttag/id_producttag.go | 0 .../producttag/method_tagassigntoproduct.go | 0 .../producttag/method_tagdetachfromproduct.go | 0 .../producttag/method_taggetbyproduct.go | 0 .../method_taggetentitystatebyproduct.go | 0 .../producttag/method_taglistbyproduct.go | 0 .../producttag/model_tagcontract.go | 0 .../producttag/model_tagcontractproperties.go | 0 .../producttag/predicates.go | 0 .../producttag/version.go | 4 +- .../schema/README.md | 28 ++- .../schema/client.go | 0 .../schema/constants.go | 0 .../schema/id_schema.go | 0 .../schema/id_service.go | 0 .../schema/id_workspace.go | 8 +- .../schema/id_workspaceschema.go | 10 +- .../method_globalschemacreateorupdate.go | 0 .../schema/method_globalschemadelete.go | 0 .../schema/method_globalschemaget.go | 0 .../schema/method_globalschemagetentitytag.go | 0 .../method_globalschemalistbyservice.go | 0 ...hod_workspaceglobalschemacreateorupdate.go | 1 + .../method_workspaceglobalschemadelete.go | 1 + .../schema/method_workspaceglobalschemaget.go | 1 - ...ethod_workspaceglobalschemagetentitytag.go | 0 ...thod_workspaceglobalschemalistbyservice.go | 1 + .../schema/model_globalschemacontract.go | 0 .../model_globalschemacontractproperties.go | 0 .../schema/predicates.go | 0 .../schema/version.go | 4 +- .../signinsettings/README.md | 12 +- .../signinsettings/client.go | 0 .../signinsettings/id_service.go | 0 .../signinsettings/method_createorupdate.go | 0 .../signinsettings/method_get.go | 0 .../signinsettings/method_getentitytag.go | 0 .../signinsettings/method_update.go | 0 .../model_portalsigninsettingproperties.go | 0 .../model_portalsigninsettings.go | 0 .../signinsettings/version.go | 4 +- .../signupsettings/README.md | 12 +- .../signupsettings/client.go | 0 .../signupsettings/id_service.go | 0 .../signupsettings/method_createorupdate.go | 0 .../signupsettings/method_get.go | 0 .../signupsettings/method_getentitytag.go | 0 .../signupsettings/method_update.go | 0 .../model_portalsignupsettings.go | 0 .../model_portalsignupsettingsproperties.go | 0 .../model_termsofserviceproperties.go | 0 .../signupsettings/version.go | 4 +- .../subscription/README.md | 63 +++-- .../subscription/client.go | 0 .../subscription/constants.go | 0 .../subscription/id_service.go | 0 .../subscription/id_subscriptions2.go | 0 .../subscription/id_usersubscriptions2.go | 0 .../subscription/id_workspace.go | 8 +- .../id_workspacesubscriptions2.go | 10 +- .../subscription/method_createorupdate.go | 0 .../subscription/method_delete.go | 0 .../subscription/method_get.go | 0 .../subscription/method_getentitytag.go | 0 .../subscription/method_list.go | 0 .../subscription/method_listsecrets.go | 0 .../method_regenerateprimarykey.go | 0 .../method_regeneratesecondarykey.go | 0 .../subscription/method_update.go | 0 .../method_usersubscriptionget.go | 0 ...hod_workspacesubscriptioncreateorupdate.go | 2 +- .../method_workspacesubscriptiondelete.go | 1 + .../method_workspacesubscriptionget.go | 1 - ...ethod_workspacesubscriptiongetentitytag.go | 0 .../method_workspacesubscriptionlist.go | 1 + ...method_workspacesubscriptionlistsecrets.go | 1 - ...rkspacesubscriptionregenerateprimarykey.go | 0 ...spacesubscriptionregeneratesecondarykey.go | 0 .../method_workspacesubscriptionupdate.go | 2 +- .../model_subscriptioncontract.go | 0 .../model_subscriptioncontractproperties.go | 0 ...l_subscriptioncreateparameterproperties.go | 0 .../model_subscriptioncreateparameters.go | 0 .../model_subscriptionkeyscontract.go | 0 ...l_subscriptionupdateparameterproperties.go | 0 .../model_subscriptionupdateparameters.go | 0 .../subscription/predicates.go | 0 .../subscription/version.go | 4 +- .../tag/README.md | 32 ++- .../tag/client.go | 0 .../tag/id_service.go | 0 .../tag/id_tag.go | 0 .../tag/id_workspace.go | 8 +- .../tag/id_workspacetag.go | 10 +- .../tag/method_createorupdate.go | 0 .../tag/method_delete.go | 0 .../tag/method_get.go | 0 .../tag/method_getentitystate.go | 0 .../tag/method_listbyservice.go | 0 .../tag/method_update.go | 0 .../tag/method_workspacetagcreateorupdate.go | 2 +- .../tag/method_workspacetagdelete.go | 1 + .../tag/method_workspacetagget.go | 1 - .../tag/method_workspacetaggetentitystate.go | 0 .../tag/method_workspacetaglistbyservice.go | 1 + .../tag/method_workspacetagupdate.go | 2 +- .../tag/model_tagcontract.go | 0 .../tag/model_tagcontractproperties.go | 0 .../tag/model_tagcreateupdateparameters.go | 0 .../tag/predicates.go | 0 .../tag/version.go | 4 +- .../tenantaccess/README.md | 16 +- .../tenantaccess/client.go | 0 .../tenantaccess/constants.go | 0 .../tenantaccess/id_access.go | 0 .../tenantaccess/id_service.go | 0 .../tenantaccess/method_create.go | 0 .../tenantaccess/method_get.go | 0 .../tenantaccess/method_getentitytag.go | 0 .../tenantaccess/method_listbyservice.go | 0 .../tenantaccess/method_listsecrets.go | 0 .../method_regenerateprimarykey.go | 0 .../method_regeneratesecondarykey.go | 0 .../tenantaccess/method_update.go | 0 .../model_accessinformationcontract.go | 0 ...del_accessinformationcontractproperties.go | 0 ...essinformationcreateparameterproperties.go | 0 ...model_accessinformationcreateparameters.go | 0 .../model_accessinformationsecretscontract.go | 0 ...essinformationupdateparameterproperties.go | 0 ...model_accessinformationupdateparameters.go | 0 .../tenantaccess/predicates.go | 0 .../tenantaccess/version.go | 4 +- .../user/README.md | 14 +- .../user/client.go | 0 .../user/constants.go | 0 .../user/id_service.go | 0 .../user/id_user.go | 0 .../user/method_createorupdate.go | 0 .../user/method_delete.go | 0 .../user/method_get.go | 0 .../user/method_getentitytag.go | 0 .../user/method_listbyservice.go | 0 .../user/method_update.go | 0 .../user/model_groupcontractproperties.go | 0 .../user/model_usercontract.go | 0 .../user/model_usercontractproperties.go | 0 .../model_usercreateparameterproperties.go | 0 .../user/model_usercreateparameters.go | 0 .../user/model_useridentitycontract.go | 0 .../user/model_userupdateparameters.go | 0 .../model_userupdateparametersproperties.go | 0 .../user/predicates.go | 0 .../user/version.go | 4 +- vendor/modules.txt | 94 +++---- 1094 files changed, 6361 insertions(+), 1573 deletions(-) delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic/README.md delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/README.md delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/certificate/README.md delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/diagnostic/README.md delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/logger/README.md rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/api/README.md (83%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/api/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/api/constants.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/api/id_api.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/api/id_service.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/api/id_workspace.go (94%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/api/id_workspaceapi.go (94%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/api/method_createorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/api/method_delete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/api/method_get.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/api/method_getentitytag.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/api/method_listbyservice.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/api/method_update.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/api/method_workspaceapicreateorupdate.go (99%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/api/method_workspaceapidelete.go (99%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/api/method_workspaceapiget.go (99%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/api/method_workspaceapigetentitytag.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/api/method_workspaceapilistbyservice.go (99%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/api/method_workspaceapiupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/api/model_apicontactinformation.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/api/model_apicontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/api/model_apicontractproperties.go (97%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/api/model_apicontractupdateproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/api/model_apicreateorupdateparameter.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/api/model_apicreateorupdateproperties.go (97%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/api/model_apicreateorupdatepropertieswsdlselector.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/api/model_apilicenseinformation.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/api/model_apiupdatecontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/api/model_apiversionsetcontractdetails.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/api/model_authenticationsettingscontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/api/model_oauth2authenticationsettingscontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/api/model_openidauthenticationsettingscontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/api/model_subscriptionkeyparameternamescontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/api/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/api/version.go (67%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apidiagnostic/README.md rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apidiagnostic/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apidiagnostic/constants.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apidiagnostic/id_api.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apidiagnostic/id_apidiagnostic.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apidiagnostic/id_workspaceapi.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apidiagnostic/id_workspaceapidiagnostic.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apidiagnostic/method_createorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apidiagnostic/method_delete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apidiagnostic/method_get.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apidiagnostic/method_getentitytag.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apidiagnostic/method_listbyservice.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apidiagnostic/method_update.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apidiagnostic/method_workspaceapidiagnosticcreateorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apidiagnostic/method_workspaceapidiagnosticdelete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apidiagnostic/method_workspaceapidiagnosticget.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apidiagnostic/method_workspaceapidiagnosticgetentitytag.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apidiagnostic/method_workspaceapidiagnosticlistbyworkspace.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apidiagnostic/method_workspaceapidiagnosticupdate.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apidiagnostic/model_bodydiagnosticsettings.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apidiagnostic/model_datamasking.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apidiagnostic/model_datamaskingentity.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apidiagnostic/model_diagnosticcontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apidiagnostic/model_diagnosticcontractproperties.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apidiagnostic/model_diagnosticcontractupdateproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apidiagnostic/model_diagnosticupdatecontract.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apidiagnostic/model_httpmessagediagnostic.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apidiagnostic/model_pipelinediagnosticsettings.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apidiagnostic/model_samplingsettings.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apidiagnostic/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apidiagnostic/version.go (66%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apimanagementservice/README.md (95%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apimanagementservice/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apimanagementservice/constants.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apimanagementservice/id_service.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apimanagementservice/method_applynetworkconfigurationupdates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apimanagementservice/method_backup.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apimanagementservice/method_checknameavailability.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apimanagementservice/method_createorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apimanagementservice/method_delete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apimanagementservice/method_get.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apimanagementservice/method_getdomainownershipidentifier.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apimanagementservice/method_getssotoken.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apimanagementservice/method_list.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apimanagementservice/method_listbyresourcegroup.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apimanagementservice/method_migratetostv2.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apimanagementservice/method_restore.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apimanagementservice/method_update.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apimanagementservice/model_additionallocation.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apimanagementservice/model_apimanagementserviceapplynetworkconfigurationparameters.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apimanagementservice/model_apimanagementservicebackuprestoreparameters.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apimanagementservice/model_apimanagementservicechecknameavailabilityparameters.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apimanagementservice/model_apimanagementservicegetdomainownershipidentifierresult.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apimanagementservice/model_apimanagementservicegetssotokenresult.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apimanagementservice/model_apimanagementservicenameavailabilityresult.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apimanagementservice/model_apimanagementserviceproperties.go (96%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apimanagementservice/model_apimanagementserviceresource.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apimanagementservice/model_apimanagementserviceskuproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apimanagementservice/model_apimanagementserviceupdateparameters.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apimanagementservice/model_apimanagementserviceupdateproperties.go (97%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apimanagementservice/model_apiversionconstraint.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apimanagementservice/model_armidwrapper.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apimanagementservice/model_certificateconfiguration.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apimanagementservice/model_certificateinformation.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apimanagementservice/model_configurationapi.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apimanagementservice/model_hostnameconfiguration.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apimanagementservice/model_migratetostv2contract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apimanagementservice/model_privateendpointconnectionwrapperproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apimanagementservice/model_privatelinkserviceconnectionstate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apimanagementservice/model_remoteprivateendpointconnectionwrapper.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apimanagementservice/model_virtualnetworkconfiguration.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apimanagementservice/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apimanagementservice/version.go (66%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apioperation/README.md (80%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apioperation/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apioperation/id_api.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apioperation/id_apioperation.go (93%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apioperation/id_operation.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apioperation/id_workspaceapi.go (94%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apioperation/method_createorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apioperation/method_delete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apioperation/method_get.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apioperation/method_getentitytag.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apioperation/method_listbyapi.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apioperation/method_update.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apioperation/method_workspaceapioperationcreateorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apioperation/method_workspaceapioperationdelete.go (99%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apioperation/method_workspaceapioperationget.go (99%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apioperation/method_workspaceapioperationgetentitytag.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apioperation/method_workspaceapioperationlistbyapi.go (99%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apioperation/method_workspaceapioperationupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apioperation/model_operationcontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apioperation/model_operationcontractproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apioperation/model_operationupdatecontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apioperation/model_operationupdatecontractproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apioperation/model_parametercontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apioperation/model_parameterexamplecontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apioperation/model_representationcontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apioperation/model_requestcontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apioperation/model_responsecontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apioperation/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apioperation/version.go (66%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apioperationpolicy/README.md (78%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apioperationpolicy/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apioperationpolicy/constants.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apioperationpolicy/id_apioperation.go (93%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apioperationpolicy/id_operation.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apioperationpolicy/method_createorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apioperationpolicy/method_delete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apioperationpolicy/method_get.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apioperationpolicy/method_getentitytag.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apioperationpolicy/method_listbyoperation.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apioperationpolicy/method_workspaceapioperationpolicycreateorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apioperationpolicy/method_workspaceapioperationpolicydelete.go (99%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apioperationpolicy/method_workspaceapioperationpolicyget.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apioperationpolicy/method_workspaceapioperationpolicygetentitytag.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apioperationpolicy/method_workspaceapioperationpolicylistbyoperation.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apioperationpolicy/model_policycontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apioperationpolicy/model_policycontractproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apioperationpolicy/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apioperationpolicy/version.go (66%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apioperationtag/README.md (92%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apioperationtag/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apioperationtag/id_operation.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apioperationtag/id_operationtag.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apioperationtag/method_tagassigntooperation.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apioperationtag/method_tagdetachfromoperation.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apioperationtag/method_taggetbyoperation.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apioperationtag/method_taggetentitystatebyoperation.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apioperationtag/method_taglistbyoperation.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apioperationtag/model_tagcontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apioperationtag/model_tagcontractproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apioperationtag/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apioperationtag/version.go (66%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apipolicy/README.md (82%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apipolicy/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apipolicy/constants.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apipolicy/id_api.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apipolicy/id_workspaceapi.go (94%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apipolicy/method_createorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apipolicy/method_delete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apipolicy/method_get.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apipolicy/method_getentitytag.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apipolicy/method_listbyapi.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apipolicy/method_workspaceapipolicycreateorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apipolicy/method_workspaceapipolicydelete.go (99%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apipolicy/method_workspaceapipolicyget.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apipolicy/method_workspaceapipolicygetentitytag.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apipolicy/method_workspaceapipolicylistbyapi.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apipolicy/model_policycontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apipolicy/model_policycontractproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apipolicy/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apipolicy/version.go (66%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apirelease/README.md (80%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apirelease/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apirelease/id_api.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apirelease/id_apirelease.go (93%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apirelease/id_release.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apirelease/id_workspaceapi.go (94%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apirelease/method_createorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apirelease/method_delete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apirelease/method_get.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apirelease/method_getentitytag.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apirelease/method_listbyservice.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apirelease/method_update.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apirelease/method_workspaceapireleasecreateorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apirelease/method_workspaceapireleasedelete.go (99%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apirelease/method_workspaceapireleaseget.go (99%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apirelease/method_workspaceapireleasegetentitytag.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apirelease/method_workspaceapireleaselistbyservice.go (99%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apirelease/method_workspaceapireleaseupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apirelease/model_apireleasecontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apirelease/model_apireleasecontractproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apirelease/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apirelease/version.go (66%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apischema/README.md (79%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apischema/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apischema/id_api.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apischema/id_apischema.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apischema/id_workspaceapi.go (94%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apischema/id_workspaceapischema.go (93%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apischema/method_createorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apischema/method_delete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apischema/method_get.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apischema/method_getentitytag.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apischema/method_listbyapi.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apischema/method_workspaceapischemacreateorupdate.go (99%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apischema/method_workspaceapischemadelete.go (99%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apischema/method_workspaceapischemaget.go (99%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apischema/method_workspaceapischemagetentitytag.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apischema/method_workspaceapischemalistbyapi.go (99%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apischema/model_schemacontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apischema/model_schemacontractproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apischema/model_schemadocumentproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apischema/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apischema/version.go (66%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apitag/README.md (92%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apitag/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apitag/id_api.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apitag/id_apitag.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apitag/method_tagassigntoapi.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apitag/method_tagdetachfromapi.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apitag/method_taggetbyapi.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apitag/method_taggetentitystatebyapi.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apitag/method_taglistbyapi.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apitag/model_tagcontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apitag/model_tagcontractproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apitag/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apitag/version.go (67%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apitagdescription/README.md (92%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apitagdescription/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apitagdescription/id_api.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apitagdescription/id_tagdescription.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apitagdescription/method_createorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apitagdescription/method_delete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apitagdescription/method_get.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apitagdescription/method_getentitytag.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apitagdescription/method_listbyservice.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apitagdescription/model_tagdescriptionbaseproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apitagdescription/model_tagdescriptioncontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apitagdescription/model_tagdescriptioncontractproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apitagdescription/model_tagdescriptioncreateparameters.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apitagdescription/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apitagdescription/version.go (66%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apiversionset/README.md (81%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apiversionset/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apiversionset/constants.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apiversionset/id_apiversionset.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apiversionset/id_service.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apiversionset/id_workspace.go (94%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apiversionset/id_workspaceapiversionset.go (95%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apiversionset/method_createorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apiversionset/method_get.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apiversionset/method_getentitytag.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apiversionset/method_listbyservice.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apiversionset/method_update.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apiversionset/method_workspaceapiversionsetcreateorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apiversionset/method_workspaceapiversionsetget.go (99%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apiversionset/method_workspaceapiversionsetgetentitytag.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apiversionset/method_workspaceapiversionsetlistbyservice.go (99%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apiversionset/method_workspaceapiversionsetupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apiversionset/model_apiversionsetcontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apiversionset/model_apiversionsetcontractproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apiversionset/model_apiversionsetupdateparameters.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apiversionset/model_apiversionsetupdateparametersproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apiversionset/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apiversionset/version.go (66%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apiversionsets/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apiversionsets/id_apiversionset.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apiversionsets/id_workspaceapiversionset.go (95%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apiversionsets/method_apiversionsetdelete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apiversionsets/method_workspaceapiversionsetdelete.go (99%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/apiversionsets/version.go (66%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/authorizationserver/README.md (93%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/authorizationserver/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/authorizationserver/constants.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/authorizationserver/id_authorizationserver.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/authorizationserver/id_service.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/authorizationserver/method_createorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/authorizationserver/method_delete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/authorizationserver/method_get.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/authorizationserver/method_getentitytag.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/authorizationserver/method_listbyservice.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/authorizationserver/method_listsecrets.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/authorizationserver/method_update.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/authorizationserver/model_authorizationservercontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/authorizationserver/model_authorizationservercontractproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/authorizationserver/model_authorizationserversecretscontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/authorizationserver/model_authorizationserverupdatecontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/authorizationserver/model_authorizationserverupdatecontractproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/authorizationserver/model_tokenbodyparametercontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/authorizationserver/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/authorizationserver/version.go (65%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/backend/README.md rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/backend/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/backend/constants.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/backend/id_backend.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/backend/id_service.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/backend/id_workspace.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/backend/id_workspacebackend.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/backend/method_createorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/backend/method_delete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/backend/method_get.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/backend/method_getentitytag.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/backend/method_listbyservice.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/backend/method_update.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/backend/method_workspacebackendcreateorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/backend/method_workspacebackenddelete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/backend/method_workspacebackendget.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/backend/method_workspacebackendgetentitytag.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/backend/method_workspacebackendlistbyworkspace.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/backend/method_workspacebackendupdate.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/backend/model_backendauthorizationheadercredentials.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/backend/model_backendbaseparameterspool.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/backend/model_backendcircuitbreaker.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/backend/model_backendcontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/backend/model_backendcontractproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/backend/model_backendcredentialscontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/backend/model_backendpoolitem.go (63%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/backend/model_backendproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/backend/model_backendproxycontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/backend/model_backendservicefabricclusterproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/backend/model_backendtlsproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/backend/model_backendupdateparameterproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/backend/model_backendupdateparameters.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/backend/model_circuitbreakerfailurecondition.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/backend/model_circuitbreakerrule.go (83%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/backend/model_failurestatuscoderange.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/backend/model_x509certificatename.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/backend/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/backend/version.go (67%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/cache/README.md (93%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/cache/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/cache/id_cache.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/cache/id_service.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/cache/method_createorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/cache/method_delete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/cache/method_get.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/cache/method_getentitytag.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/cache/method_listbyservice.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/cache/method_update.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/cache/model_cachecontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/cache/model_cachecontractproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/cache/model_cacheupdateparameters.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/cache/model_cacheupdateproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/cache/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/cache/version.go (67%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/certificate/README.md rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/certificate/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/certificate/id_certificate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/certificate/id_service.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/certificate/id_workspace.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/certificate/id_workspacecertificate.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/certificate/method_createorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/certificate/method_delete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/certificate/method_get.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/certificate/method_getentitytag.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/certificate/method_listbyservice.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/certificate/method_refreshsecret.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/certificate/method_workspacecertificatecreateorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/certificate/method_workspacecertificatedelete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/certificate/method_workspacecertificateget.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/certificate/method_workspacecertificategetentitytag.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/certificate/method_workspacecertificatelistbyworkspace.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/certificate/method_workspacecertificaterefreshsecret.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/certificate/model_certificatecontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/certificate/model_certificatecontractproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/certificate/model_certificatecreateorupdateparameters.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/certificate/model_certificatecreateorupdateproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/certificate/model_keyvaultcontractcreateproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/certificate/model_keyvaultcontractproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/certificate/model_keyvaultlastaccessstatuscontractproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/certificate/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/certificate/version.go (66%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/delegationsettings/README.md (91%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/delegationsettings/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/delegationsettings/id_service.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/delegationsettings/method_createorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/delegationsettings/method_get.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/delegationsettings/method_getentitytag.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/delegationsettings/method_listsecrets.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/delegationsettings/method_update.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/delegationsettings/model_portaldelegationsettings.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/delegationsettings/model_portaldelegationsettingsproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/delegationsettings/model_portalsettingvalidationkeycontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/delegationsettings/model_registrationdelegationsettingsproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/delegationsettings/model_subscriptionsdelegationsettingsproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/delegationsettings/version.go (66%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/deletedservice/README.md (87%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/deletedservice/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/deletedservice/id_deletedservice.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/deletedservice/method_getbyname.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/deletedservice/method_listbysubscription.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/deletedservice/method_purge.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/deletedservice/model_deletedservicecontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/deletedservice/model_deletedservicecontractproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/deletedservice/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/deletedservice/version.go (66%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/diagnostic/README.md rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/diagnostic/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/diagnostic/constants.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/diagnostic/id_diagnostic.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/diagnostic/id_service.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/diagnostic/id_workspace.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/diagnostic/id_workspacediagnostic.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/diagnostic/method_createorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/diagnostic/method_delete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/diagnostic/method_get.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/diagnostic/method_getentitytag.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/diagnostic/method_listbyservice.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/diagnostic/method_update.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/diagnostic/method_workspacediagnosticcreateorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/diagnostic/method_workspacediagnosticdelete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/diagnostic/method_workspacediagnosticget.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/diagnostic/method_workspacediagnosticgetentitytag.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/diagnostic/method_workspacediagnosticlistbyworkspace.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/diagnostic/method_workspacediagnosticupdate.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/diagnostic/model_bodydiagnosticsettings.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/diagnostic/model_datamasking.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/diagnostic/model_datamaskingentity.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/diagnostic/model_diagnosticcontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/diagnostic/model_diagnosticcontractproperties.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/diagnostic/model_diagnosticcontractupdateproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/diagnostic/model_diagnosticupdatecontract.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/diagnostic/model_httpmessagediagnostic.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/diagnostic/model_pipelinediagnosticsettings.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/diagnostic/model_samplingsettings.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/diagnostic/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/diagnostic/version.go (66%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/emailtemplates/README.md (92%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/emailtemplates/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/emailtemplates/constants.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/emailtemplates/id_template.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/emailtemplates/method_emailtemplatecreateorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/emailtemplates/method_emailtemplatedelete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/emailtemplates/method_emailtemplateget.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/emailtemplates/method_emailtemplategetentitytag.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/emailtemplates/method_emailtemplateupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/emailtemplates/model_emailtemplatecontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/emailtemplates/model_emailtemplatecontractproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/emailtemplates/model_emailtemplateparameterscontractproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/emailtemplates/model_emailtemplateupdateparameterproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/emailtemplates/model_emailtemplateupdateparameters.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/emailtemplates/version.go (66%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/gateway/README.md (74%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/gateway/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/gateway/id_service.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview/gateway/id_gateway.go => 2024-05-01/gateway/id_servicegateway.go} (66%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/gateway/method_createorupdate.go (89%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/gateway/method_delete.go (90%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/gateway/method_get.go (89%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/gateway/method_getentitytag.go (87%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/gateway/method_listbyservice.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/gateway/method_update.go (90%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/gateway/model_gatewaycontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/gateway/model_gatewaycontractproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/gateway/model_resourcelocationdatacontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/gateway/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/gateway/version.go (67%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/gatewayapi/README.md (85%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/gatewayapi/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/gatewayapi/constants.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/gatewayapi/id_gatewayapi.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview/gatewayapi/id_gateway.go => 2024-05-01/gatewayapi/id_servicegateway.go} (66%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/gatewayapi/method_createorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/gatewayapi/method_delete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/gatewayapi/method_getentitytag.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/gatewayapi/method_listbyservice.go (89%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/gatewayapi/model_apicontactinformation.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/gatewayapi/model_apicontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/gatewayapi/model_apicontractproperties.go (97%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/gatewayapi/model_apilicenseinformation.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/gatewayapi/model_apiversionsetcontractdetails.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/gatewayapi/model_associationcontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/gatewayapi/model_associationcontractproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/gatewayapi/model_authenticationsettingscontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/gatewayapi/model_oauth2authenticationsettingscontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/gatewayapi/model_openidauthenticationsettingscontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/gatewayapi/model_subscriptionkeyparameternamescontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/gatewayapi/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/gatewayapi/version.go (66%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/gatewaycertificateauthority/README.md (89%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/gatewaycertificateauthority/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/gatewaycertificateauthority/id_certificateauthority.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview/gatewaycertificateauthority/id_gateway.go => 2024-05-01/gatewaycertificateauthority/id_servicegateway.go} (66%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/gatewaycertificateauthority/method_createorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/gatewaycertificateauthority/method_delete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/gatewaycertificateauthority/method_get.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/gatewaycertificateauthority/method_getentitytag.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/gatewaycertificateauthority/method_listbyservice.go (87%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/gatewaycertificateauthority/model_gatewaycertificateauthoritycontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/gatewaycertificateauthority/model_gatewaycertificateauthoritycontractproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/gatewaycertificateauthority/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/gatewaycertificateauthority/version.go (65%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/gatewayhostnameconfiguration/README.md (89%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/gatewayhostnameconfiguration/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/gatewayhostnameconfiguration/id_hostnameconfiguration.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview/gatewayhostnameconfiguration/id_gateway.go => 2024-05-01/gatewayhostnameconfiguration/id_servicegateway.go} (66%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/gatewayhostnameconfiguration/method_createorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/gatewayhostnameconfiguration/method_delete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/gatewayhostnameconfiguration/method_get.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/gatewayhostnameconfiguration/method_getentitytag.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/gatewayhostnameconfiguration/method_listbyservice.go (87%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/gatewayhostnameconfiguration/model_gatewayhostnameconfigurationcontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/gatewayhostnameconfiguration/model_gatewayhostnameconfigurationcontractproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/gatewayhostnameconfiguration/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/gatewayhostnameconfiguration/version.go (83%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/group/README.md (83%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/group/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/group/constants.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/group/id_group.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/group/id_service.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/group/id_workspace.go (94%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/group/id_workspacegroup.go (94%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/group/method_createorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/group/method_delete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/group/method_get.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/group/method_getentitytag.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/group/method_listbyservice.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/group/method_update.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/group/method_workspacegroupcreateorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/group/method_workspacegroupdelete.go (99%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/group/method_workspacegroupget.go (99%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/group/method_workspacegroupgetentitytag.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/group/method_workspacegrouplistbyservice.go (99%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/group/method_workspacegroupupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/group/model_groupcontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/group/model_groupcontractproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/group/model_groupcreateparameters.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/group/model_groupcreateparametersproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/group/model_groupupdateparameters.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/group/model_groupupdateparametersproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/group/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/group/version.go (67%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/groupuser/README.md (85%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/groupuser/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/groupuser/constants.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/groupuser/id_group.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/groupuser/id_groupuser.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/groupuser/id_workspacegroup.go (94%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/groupuser/id_workspacegroupuser.go (93%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/groupuser/method_checkentityexists.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/groupuser/method_create.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/groupuser/method_delete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/groupuser/method_list.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/groupuser/method_workspacegroupusercheckentityexists.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/groupuser/method_workspacegroupusercreate.go (99%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/groupuser/method_workspacegroupuserdelete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/groupuser/method_workspacegroupuserlist.go (99%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/groupuser/model_groupcontractproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/groupuser/model_usercontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/groupuser/model_usercontractproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/groupuser/model_useridentitycontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/groupuser/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/groupuser/version.go (66%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/identityprovider/README.md (93%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/identityprovider/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/identityprovider/constants.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/identityprovider/id_identityprovider.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/identityprovider/id_service.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/identityprovider/method_createorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/identityprovider/method_delete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/identityprovider/method_get.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/identityprovider/method_getentitytag.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/identityprovider/method_listbyservice.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/identityprovider/method_listsecrets.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/identityprovider/method_update.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/identityprovider/model_clientsecretcontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/identityprovider/model_identityprovidercontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/identityprovider/model_identityprovidercontractproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/identityprovider/model_identityprovidercreatecontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/identityprovider/model_identityprovidercreatecontractproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/identityprovider/model_identityproviderupdateparameters.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/identityprovider/model_identityproviderupdateproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/identityprovider/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/identityprovider/version.go (66%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/logger/README.md rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/logger/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/logger/constants.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/logger/id_logger.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/logger/id_service.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/logger/id_workspace.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/logger/id_workspacelogger.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/logger/method_createorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/logger/method_delete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/logger/method_get.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/logger/method_getentitytag.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/logger/method_listbyservice.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/logger/method_update.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/logger/method_workspaceloggercreateorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/logger/method_workspaceloggerdelete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/logger/method_workspaceloggerget.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/logger/method_workspaceloggergetentitytag.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/logger/method_workspaceloggerlistbyworkspace.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/logger/method_workspaceloggerupdate.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/logger/model_loggercontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/logger/model_loggercontractproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/logger/model_loggerupdatecontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/logger/model_loggerupdateparameters.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/logger/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/logger/version.go (67%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/namedvalue/README.md (80%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/namedvalue/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/namedvalue/constants.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/namedvalue/id_namedvalue.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/namedvalue/id_service.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/namedvalue/id_workspace.go (94%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/namedvalue/id_workspacenamedvalue.go (95%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/namedvalue/method_createorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/namedvalue/method_delete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/namedvalue/method_get.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/namedvalue/method_getentitytag.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/namedvalue/method_listbyservice.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/namedvalue/method_listvalue.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/namedvalue/method_refreshsecret.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/namedvalue/method_update.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/namedvalue/method_workspacenamedvaluecreateorupdate.go (99%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/namedvalue/method_workspacenamedvaluedelete.go (99%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/namedvalue/method_workspacenamedvalueget.go (99%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/namedvalue/method_workspacenamedvaluegetentitytag.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/namedvalue/method_workspacenamedvaluelistbyservice.go (99%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/namedvalue/method_workspacenamedvaluelistvalue.go (99%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/namedvalue/method_workspacenamedvaluerefreshsecret.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/namedvalue/method_workspacenamedvalueupdate.go (99%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/namedvalue/model_keyvaultcontractcreateproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/namedvalue/model_keyvaultcontractproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/namedvalue/model_keyvaultlastaccessstatuscontractproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/namedvalue/model_namedvaluecontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/namedvalue/model_namedvaluecontractproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/namedvalue/model_namedvaluecreatecontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/namedvalue/model_namedvaluecreatecontractproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/namedvalue/model_namedvaluesecretcontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/namedvalue/model_namedvalueupdateparameterproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/namedvalue/model_namedvalueupdateparameters.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/namedvalue/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/namedvalue/version.go (66%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/notificationrecipientemail/README.md (86%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/notificationrecipientemail/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/notificationrecipientemail/constants.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/notificationrecipientemail/id_notification.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/notificationrecipientemail/id_notificationnotification.go (95%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/notificationrecipientemail/id_notificationrecipientemail.go (96%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/notificationrecipientemail/id_recipientemail.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/notificationrecipientemail/method_checkentityexists.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/notificationrecipientemail/method_createorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/notificationrecipientemail/method_delete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/notificationrecipientemail/method_listbynotification.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/notificationrecipientemail/method_workspacenotificationrecipientemailcheckentityexists.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/notificationrecipientemail/method_workspacenotificationrecipientemailcreateorupdate.go (99%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/notificationrecipientemail/method_workspacenotificationrecipientemaildelete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/notificationrecipientemail/method_workspacenotificationrecipientemaillistbynotification.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/notificationrecipientemail/model_recipientemailcontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/notificationrecipientemail/model_recipientemailcontractproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/notificationrecipientemail/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/notificationrecipientemail/version.go (65%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/notificationrecipientuser/README.md (89%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/notificationrecipientuser/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/notificationrecipientuser/constants.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/notificationrecipientuser/id_notification.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/notificationrecipientuser/id_notificationnotification.go (95%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/notificationrecipientuser/id_notificationrecipientuser.go (95%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/notificationrecipientuser/id_recipientuser.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/notificationrecipientuser/method_checkentityexists.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/notificationrecipientuser/method_createorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/notificationrecipientuser/method_delete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/notificationrecipientuser/method_listbynotification.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/notificationrecipientuser/method_workspacenotificationrecipientusercheckentityexists.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/notificationrecipientuser/method_workspacenotificationrecipientusercreateorupdate.go (99%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/notificationrecipientuser/method_workspacenotificationrecipientuserdelete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/notificationrecipientuser/method_workspacenotificationrecipientuserlistbynotification.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/notificationrecipientuser/model_recipientusercontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/notificationrecipientuser/model_recipientuserscontractproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/notificationrecipientuser/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/notificationrecipientuser/version.go (65%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/openidconnectprovider/README.md (93%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/openidconnectprovider/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/openidconnectprovider/id_openidconnectprovider.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/openidconnectprovider/id_service.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/openidconnectprovider/method_createorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/openidconnectprovider/method_delete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/openidconnectprovider/method_get.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/openidconnectprovider/method_getentitytag.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/openidconnectprovider/method_listbyservice.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/openidconnectprovider/method_listsecrets.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/openidconnectprovider/method_update.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/openidconnectprovider/model_clientsecretcontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/openidconnectprovider/model_openidconnectprovidercontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/openidconnectprovider/model_openidconnectprovidercontractproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/openidconnectprovider/model_openidconnectproviderupdatecontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/openidconnectprovider/model_openidconnectproviderupdatecontractproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/openidconnectprovider/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/openidconnectprovider/version.go (66%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/policy/README.md (92%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/policy/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/policy/constants.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/policy/id_service.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/policy/method_createorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/policy/method_delete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/policy/method_get.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/policy/method_getentitytag.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/policy/method_listbyservice.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/policy/model_policycontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/policy/model_policycontractproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/policy/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/policy/version.go (67%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/policyfragment/README.md (81%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/policyfragment/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/policyfragment/constants.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/policyfragment/id_policyfragment.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/policyfragment/id_service.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/policyfragment/id_workspace.go (94%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/policyfragment/id_workspacepolicyfragment.go (95%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/policyfragment/method_createorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/policyfragment/method_delete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/policyfragment/method_get.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/policyfragment/method_getentitytag.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/policyfragment/method_listbyservice.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/policyfragment/method_listreferences.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/policyfragment/method_workspacepolicyfragmentcreateorupdate.go (99%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/policyfragment/method_workspacepolicyfragmentdelete.go (99%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/policyfragment/method_workspacepolicyfragmentget.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/policyfragment/method_workspacepolicyfragmentgetentitytag.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/policyfragment/method_workspacepolicyfragmentlistbyservice.go (99%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/policyfragment/method_workspacepolicyfragmentlistreferences.go (99%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/policyfragment/model_policyfragmentcontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/policyfragment/model_policyfragmentcontractproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/policyfragment/model_resource.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/policyfragment/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/policyfragment/version.go (66%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/product/README.md (82%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/product/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/product/constants.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/product/id_product.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/product/id_service.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/product/id_workspace.go (94%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/product/id_workspaceproduct.go (94%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/product/method_createorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/product/method_delete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/product/method_get.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/product/method_getentitytag.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/product/method_listbyservice.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/product/method_update.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/product/method_workspaceproductcreateorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/product/method_workspaceproductdelete.go (99%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/product/method_workspaceproductget.go (99%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/product/method_workspaceproductgetentitytag.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/product/method_workspaceproductlistbyservice.go (99%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/product/method_workspaceproductupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/product/model_productcontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/product/model_productcontractproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/product/model_productupdateparameters.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/product/model_productupdateproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/product/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/product/version.go (67%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/productapi/README.md (90%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/productapi/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/productapi/constants.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/productapi/id_product.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/productapi/id_productapi.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/productapi/method_checkentityexists.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/productapi/method_createorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/productapi/method_delete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/productapi/method_listbyproduct.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/productapi/model_apicontactinformation.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/productapi/model_apicontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/productapi/model_apicontractproperties.go (97%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/productapi/model_apilicenseinformation.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/productapi/model_apiversionsetcontractdetails.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/productapi/model_authenticationsettingscontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/productapi/model_oauth2authenticationsettingscontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/productapi/model_openidauthenticationsettingscontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/productapi/model_subscriptionkeyparameternamescontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/productapi/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/productapi/version.go (66%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/productgroup/README.md (90%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/productgroup/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/productgroup/constants.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/productgroup/id_product.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/productgroup/id_productgroup.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/productgroup/method_checkentityexists.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/productgroup/method_createorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/productgroup/method_delete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/productgroup/method_listbyproduct.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/productgroup/model_groupcontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/productgroup/model_groupcontractproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/productgroup/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/productgroup/version.go (66%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/productpolicy/README.md (80%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/productpolicy/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/productpolicy/constants.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/productpolicy/id_product.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/productpolicy/id_workspaceproduct.go (94%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/productpolicy/method_createorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/productpolicy/method_delete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/productpolicy/method_get.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/productpolicy/method_getentitytag.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/productpolicy/method_listbyproduct.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/productpolicy/method_workspaceproductpolicycreateorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/productpolicy/method_workspaceproductpolicydelete.go (99%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/productpolicy/method_workspaceproductpolicyget.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/productpolicy/method_workspaceproductpolicygetentitytag.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/productpolicy/method_workspaceproductpolicylistbyproduct.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/productpolicy/model_policycontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/productpolicy/model_policycontractproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/productpolicy/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/productpolicy/version.go (66%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/producttag/README.md (92%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/producttag/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/producttag/id_product.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/producttag/id_producttag.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/producttag/method_tagassigntoproduct.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/producttag/method_tagdetachfromproduct.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/producttag/method_taggetbyproduct.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/producttag/method_taggetentitystatebyproduct.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/producttag/method_taglistbyproduct.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/producttag/model_tagcontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/producttag/model_tagcontractproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/producttag/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/producttag/version.go (66%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/schema/README.md (88%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/schema/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/schema/constants.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/schema/id_schema.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/schema/id_service.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/schema/id_workspace.go (94%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/schema/id_workspaceschema.go (94%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/schema/method_globalschemacreateorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/schema/method_globalschemadelete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/schema/method_globalschemaget.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/schema/method_globalschemagetentitytag.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/schema/method_globalschemalistbyservice.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/schema/method_workspaceglobalschemacreateorupdate.go (99%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/schema/method_workspaceglobalschemadelete.go (99%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/schema/method_workspaceglobalschemaget.go (99%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/schema/method_workspaceglobalschemagetentitytag.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/schema/method_workspaceglobalschemalistbyservice.go (99%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/schema/model_globalschemacontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/schema/model_globalschemacontractproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/schema/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/schema/version.go (67%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/signinsettings/README.md (90%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/signinsettings/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/signinsettings/id_service.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/signinsettings/method_createorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/signinsettings/method_get.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/signinsettings/method_getentitytag.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/signinsettings/method_update.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/signinsettings/model_portalsigninsettingproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/signinsettings/model_portalsigninsettings.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/signinsettings/version.go (66%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/signupsettings/README.md (90%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/signupsettings/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/signupsettings/id_service.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/signupsettings/method_createorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/signupsettings/method_get.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/signupsettings/method_getentitytag.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/signupsettings/method_update.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/signupsettings/model_portalsignupsettings.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/signupsettings/model_portalsignupsettingsproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/signupsettings/model_termsofserviceproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/signupsettings/version.go (66%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/subscription/README.md (82%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/subscription/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/subscription/constants.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/subscription/id_service.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/subscription/id_subscriptions2.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/subscription/id_usersubscriptions2.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/subscription/id_workspace.go (94%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/subscription/id_workspacesubscriptions2.go (95%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/subscription/method_createorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/subscription/method_delete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/subscription/method_get.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/subscription/method_getentitytag.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/subscription/method_list.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/subscription/method_listsecrets.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/subscription/method_regenerateprimarykey.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/subscription/method_regeneratesecondarykey.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/subscription/method_update.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/subscription/method_usersubscriptionget.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/subscription/method_workspacesubscriptioncreateorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/subscription/method_workspacesubscriptiondelete.go (99%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/subscription/method_workspacesubscriptionget.go (99%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/subscription/method_workspacesubscriptiongetentitytag.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/subscription/method_workspacesubscriptionlist.go (99%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/subscription/method_workspacesubscriptionlistsecrets.go (99%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/subscription/method_workspacesubscriptionregenerateprimarykey.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/subscription/method_workspacesubscriptionregeneratesecondarykey.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/subscription/method_workspacesubscriptionupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/subscription/model_subscriptioncontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/subscription/model_subscriptioncontractproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/subscription/model_subscriptioncreateparameterproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/subscription/model_subscriptioncreateparameters.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/subscription/model_subscriptionkeyscontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/subscription/model_subscriptionupdateparameterproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/subscription/model_subscriptionupdateparameters.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/subscription/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/subscription/version.go (66%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/tag/README.md (89%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/tag/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/tag/id_service.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/tag/id_tag.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/tag/id_workspace.go (94%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/tag/id_workspacetag.go (94%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/tag/method_createorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/tag/method_delete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/tag/method_get.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/tag/method_getentitystate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/tag/method_listbyservice.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/tag/method_update.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/tag/method_workspacetagcreateorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/tag/method_workspacetagdelete.go (99%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/tag/method_workspacetagget.go (99%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/tag/method_workspacetaggetentitystate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/tag/method_workspacetaglistbyservice.go (99%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/tag/method_workspacetagupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/tag/model_tagcontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/tag/model_tagcontractproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/tag/model_tagcreateupdateparameters.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/tag/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/tag/version.go (67%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/tenantaccess/README.md (94%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/tenantaccess/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/tenantaccess/constants.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/tenantaccess/id_access.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/tenantaccess/id_service.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/tenantaccess/method_create.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/tenantaccess/method_get.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/tenantaccess/method_getentitytag.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/tenantaccess/method_listbyservice.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/tenantaccess/method_listsecrets.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/tenantaccess/method_regenerateprimarykey.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/tenantaccess/method_regeneratesecondarykey.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/tenantaccess/method_update.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/tenantaccess/model_accessinformationcontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/tenantaccess/model_accessinformationcontractproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/tenantaccess/model_accessinformationcreateparameterproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/tenantaccess/model_accessinformationcreateparameters.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/tenantaccess/model_accessinformationsecretscontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/tenantaccess/model_accessinformationupdateparameterproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/tenantaccess/model_accessinformationupdateparameters.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/tenantaccess/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/tenantaccess/version.go (66%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/user/README.md (93%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/user/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/user/constants.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/user/id_service.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/user/id_user.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/user/method_createorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/user/method_delete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/user/method_get.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/user/method_getentitytag.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/user/method_listbyservice.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/user/method_update.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/user/model_groupcontractproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/user/model_usercontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/user/model_usercontractproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/user/model_usercreateparameterproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/user/model_usercreateparameters.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/user/model_useridentitycontract.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/user/model_userupdateparameters.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/user/model_userupdateparametersproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/user/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/{2023-05-01-preview => 2024-05-01}/user/version.go (67%) diff --git a/internal/services/apimanagement/api_management_api_data_source.go b/internal/services/apimanagement/api_management_api_data_source.go index 4b7ca20aa356..332eee1ad13c 100644 --- a/internal/services/apimanagement/api_management_api_data_source.go +++ b/internal/services/apimanagement/api_management_api_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-helpers/resourcemanager/commonschema" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/api" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/apimanagement/schemaz" "github.com/hashicorp/terraform-provider-azurerm/internal/services/apimanagement/validate" diff --git a/internal/services/apimanagement/api_management_api_diagnostic_resource.go b/internal/services/apimanagement/api_management_api_diagnostic_resource.go index a64329059de7..6ff77e88926f 100644 --- a/internal/services/apimanagement/api_management_api_diagnostic_resource.go +++ b/internal/services/apimanagement/api_management_api_diagnostic_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/commonschema" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/logger" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apidiagnostic" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/logger" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/apimanagement/schemaz" diff --git a/internal/services/apimanagement/api_management_api_diagnostic_resource_test.go b/internal/services/apimanagement/api_management_api_diagnostic_resource_test.go index ccca3d69217e..12ca2200efff 100644 --- a/internal/services/apimanagement/api_management_api_diagnostic_resource_test.go +++ b/internal/services/apimanagement/api_management_api_diagnostic_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/apimanagement/2023-05-01-preview/apidiagnostic" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apidiagnostic" "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/apimanagement/api_management_api_operation_policy_resource.go b/internal/services/apimanagement/api_management_api_operation_policy_resource.go index 98bcebfcaed5..51a04175a51f 100644 --- a/internal/services/apimanagement/api_management_api_operation_policy_resource.go +++ b/internal/services/apimanagement/api_management_api_operation_policy_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/commonschema" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperationpolicy" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/apimanagement/migration" diff --git a/internal/services/apimanagement/api_management_api_operation_policy_resource_test.go b/internal/services/apimanagement/api_management_api_operation_policy_resource_test.go index de3f961ad0ad..4194ef90b2c0 100644 --- a/internal/services/apimanagement/api_management_api_operation_policy_resource_test.go +++ b/internal/services/apimanagement/api_management_api_operation_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/apimanagement/2023-05-01-preview/apioperationpolicy" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperationpolicy" "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/apimanagement/api_management_api_operation_resource.go b/internal/services/apimanagement/api_management_api_operation_resource.go index fb5ad79b660f..c28a2e9ff070 100644 --- a/internal/services/apimanagement/api_management_api_operation_resource.go +++ b/internal/services/apimanagement/api_management_api_operation_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/apimanagement/2023-05-01-preview/apioperation" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperation" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/apimanagement/schemaz" diff --git a/internal/services/apimanagement/api_management_api_operation_resource_test.go b/internal/services/apimanagement/api_management_api_operation_resource_test.go index e7e8d4c9d87e..2fe6502c739a 100644 --- a/internal/services/apimanagement/api_management_api_operation_resource_test.go +++ b/internal/services/apimanagement/api_management_api_operation_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/apimanagement/2023-05-01-preview/apioperation" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperation" "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/apimanagement/api_management_api_operation_tag_resource.go b/internal/services/apimanagement/api_management_api_operation_tag_resource.go index bf99e6c2c3e6..38ce1cdecc00 100644 --- a/internal/services/apimanagement/api_management_api_operation_tag_resource.go +++ b/internal/services/apimanagement/api_management_api_operation_tag_resource.go @@ -9,8 +9,8 @@ import ( "time" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationtag" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperationtag" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tag" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/apimanagement/validate" diff --git a/internal/services/apimanagement/api_management_api_operation_tag_resource_test.go b/internal/services/apimanagement/api_management_api_operation_tag_resource_test.go index 2371c748c1b8..55d2f448f9c3 100644 --- a/internal/services/apimanagement/api_management_api_operation_tag_resource_test.go +++ b/internal/services/apimanagement/api_management_api_operation_tag_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/apimanagement/2023-05-01-preview/apioperationtag" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperationtag" "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/apimanagement/api_management_api_policy_resource.go b/internal/services/apimanagement/api_management_api_policy_resource.go index d98e30174895..1ae61d8d542a 100644 --- a/internal/services/apimanagement/api_management_api_policy_resource.go +++ b/internal/services/apimanagement/api_management_api_policy_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/commonschema" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apipolicy" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apipolicy" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/apimanagement/migration" diff --git a/internal/services/apimanagement/api_management_api_policy_resource_test.go b/internal/services/apimanagement/api_management_api_policy_resource_test.go index ca179ca679b9..d9f9f0618e2b 100644 --- a/internal/services/apimanagement/api_management_api_policy_resource_test.go +++ b/internal/services/apimanagement/api_management_api_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/apimanagement/2023-05-01-preview/apipolicy" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apipolicy" "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/apimanagement/api_management_api_release.go b/internal/services/apimanagement/api_management_api_release.go index 9929a201afc6..4d191f98f3c3 100644 --- a/internal/services/apimanagement/api_management_api_release.go +++ b/internal/services/apimanagement/api_management_api_release.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-sdk/resource-manager/apimanagement/2023-05-01-preview/api" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/api" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apirelease" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/apimanagement/validate" diff --git a/internal/services/apimanagement/api_management_api_release_resource_test.go b/internal/services/apimanagement/api_management_api_release_resource_test.go index 853e9aaf3cc2..58ecaebb6d96 100644 --- a/internal/services/apimanagement/api_management_api_release_resource_test.go +++ b/internal/services/apimanagement/api_management_api_release_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/apimanagement/2023-05-01-preview/apirelease" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apirelease" "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/apimanagement/api_management_api_resource.go b/internal/services/apimanagement/api_management_api_resource.go index d5d09b3bc487..4fb8e9892724 100644 --- a/internal/services/apimanagement/api_management_api_resource.go +++ b/internal/services/apimanagement/api_management_api_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/commonschema" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/api" "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/apimanagement/api_management_api_resource_test.go b/internal/services/apimanagement/api_management_api_resource_test.go index 452b668188ce..50ab67435c0a 100644 --- a/internal/services/apimanagement/api_management_api_resource_test.go +++ b/internal/services/apimanagement/api_management_api_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/apimanagement/2023-05-01-preview/api" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/api" "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/apimanagement/api_management_api_schema_resource.go b/internal/services/apimanagement/api_management_api_schema_resource.go index c252e21b2330..95c27904f709 100644 --- a/internal/services/apimanagement/api_management_api_schema_resource.go +++ b/internal/services/apimanagement/api_management_api_schema_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/commonschema" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apischema" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/apimanagement/schemaz" diff --git a/internal/services/apimanagement/api_management_api_schema_resource_test.go b/internal/services/apimanagement/api_management_api_schema_resource_test.go index eda9a88a7210..73bc343ef727 100644 --- a/internal/services/apimanagement/api_management_api_schema_resource_test.go +++ b/internal/services/apimanagement/api_management_api_schema_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/apimanagement/2023-05-01-preview/apischema" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apischema" "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/apimanagement/api_management_api_tag_description_resource.go b/internal/services/apimanagement/api_management_api_tag_description_resource.go index 42cbdf54d969..fe074cd54bb9 100644 --- a/internal/services/apimanagement/api_management_api_tag_description_resource.go +++ b/internal/services/apimanagement/api_management_api_tag_description_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-sdk/resource-manager/apimanagement/2023-05-01-preview/apitag" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitagdescription" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apitag" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apitagdescription" "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/apimanagement/api_management_api_tag_description_resource_test.go b/internal/services/apimanagement/api_management_api_tag_description_resource_test.go index 8d027681c0e0..8cc2ad7aae57 100644 --- a/internal/services/apimanagement/api_management_api_tag_description_resource_test.go +++ b/internal/services/apimanagement/api_management_api_tag_description_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/apimanagement/2023-05-01-preview/apitagdescription" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apitagdescription" "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/apimanagement/api_management_api_tag_resource.go b/internal/services/apimanagement/api_management_api_tag_resource.go index 9653398a9664..15d0b34b2662 100644 --- a/internal/services/apimanagement/api_management_api_tag_resource.go +++ b/internal/services/apimanagement/api_management_api_tag_resource.go @@ -9,9 +9,9 @@ import ( "time" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitag" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/api" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apitag" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tag" "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/apimanagement/api_management_api_tag_resource_test.go b/internal/services/apimanagement/api_management_api_tag_resource_test.go index 2a52faeff723..0e5a752e3105 100644 --- a/internal/services/apimanagement/api_management_api_tag_resource_test.go +++ b/internal/services/apimanagement/api_management_api_tag_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/apimanagement/2023-05-01-preview/apitag" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apitag" "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/apimanagement/api_management_api_version_set_data_source.go b/internal/services/apimanagement/api_management_api_version_set_data_source.go index d2b89919a020..bb3b251c9a7b 100644 --- a/internal/services/apimanagement/api_management_api_version_set_data_source.go +++ b/internal/services/apimanagement/api_management_api_version_set_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-helpers/resourcemanager/commonschema" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apiversionset" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/apimanagement/schemaz" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" diff --git a/internal/services/apimanagement/api_management_api_version_set_resource.go b/internal/services/apimanagement/api_management_api_version_set_resource.go index 472412f40cdf..66fdc9bc2a4d 100644 --- a/internal/services/apimanagement/api_management_api_version_set_resource.go +++ b/internal/services/apimanagement/api_management_api_version_set_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/commonschema" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionsets" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apiversionset" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apiversionsets" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/apimanagement/migration" diff --git a/internal/services/apimanagement/api_management_api_version_set_resource_test.go b/internal/services/apimanagement/api_management_api_version_set_resource_test.go index 55a2a567e500..f26d90b39973 100644 --- a/internal/services/apimanagement/api_management_api_version_set_resource_test.go +++ b/internal/services/apimanagement/api_management_api_version_set_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/apimanagement/2023-05-01-preview/apiversionset" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apiversionset" "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/apimanagement/api_management_authorization_server_resource.go b/internal/services/apimanagement/api_management_authorization_server_resource.go index ec11aa32efc4..ad3c7e3984de 100644 --- a/internal/services/apimanagement/api_management_authorization_server_resource.go +++ b/internal/services/apimanagement/api_management_authorization_server_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/apimanagement/2023-05-01-preview/authorizationserver" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/authorizationserver" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/apimanagement/schemaz" diff --git a/internal/services/apimanagement/api_management_authorization_server_resource_test.go b/internal/services/apimanagement/api_management_authorization_server_resource_test.go index 8f27e93980b2..b582ed5e9188 100644 --- a/internal/services/apimanagement/api_management_authorization_server_resource_test.go +++ b/internal/services/apimanagement/api_management_authorization_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/apimanagement/2023-05-01-preview/authorizationserver" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/authorizationserver" "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/apimanagement/api_management_backend_resource.go b/internal/services/apimanagement/api_management_backend_resource.go index 46534c92701e..4c3e96b36029 100644 --- a/internal/services/apimanagement/api_management_backend_resource.go +++ b/internal/services/apimanagement/api_management_backend_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/commonschema" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/backend" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/apimanagement/schemaz" diff --git a/internal/services/apimanagement/api_management_backend_resource_test.go b/internal/services/apimanagement/api_management_backend_resource_test.go index bcf5a427bdef..1942f7b7a77b 100644 --- a/internal/services/apimanagement/api_management_backend_resource_test.go +++ b/internal/services/apimanagement/api_management_backend_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/apimanagement/2023-05-01-preview/backend" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/backend" "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/apimanagement/api_management_certificate_resource.go b/internal/services/apimanagement/api_management_certificate_resource.go index 060647b9a9aa..e11d305c5e85 100644 --- a/internal/services/apimanagement/api_management_certificate_resource.go +++ b/internal/services/apimanagement/api_management_certificate_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/apimanagement/2023-05-01-preview/certificate" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/certificate" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/apimanagement/schemaz" diff --git a/internal/services/apimanagement/api_management_certificate_resource_test.go b/internal/services/apimanagement/api_management_certificate_resource_test.go index b5524b17024d..8099b95c1db4 100644 --- a/internal/services/apimanagement/api_management_certificate_resource_test.go +++ b/internal/services/apimanagement/api_management_certificate_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/apimanagement/2023-05-01-preview/certificate" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/certificate" "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/apimanagement/api_management_custom_domain_resource.go b/internal/services/apimanagement/api_management_custom_domain_resource.go index cb622409f37c..d668c1b54732 100644 --- a/internal/services/apimanagement/api_management_custom_domain_resource.go +++ b/internal/services/apimanagement/api_management_custom_domain_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-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/apimanagement/parse" diff --git a/internal/services/apimanagement/api_management_custom_domain_resource_test.go b/internal/services/apimanagement/api_management_custom_domain_resource_test.go index efe4d9fc225c..e5f529dd8f45 100644 --- a/internal/services/apimanagement/api_management_custom_domain_resource_test.go +++ b/internal/services/apimanagement/api_management_custom_domain_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/apimanagement/2023-05-01-preview/apimanagementservice" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice" "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/apimanagement/api_management_data_source.go b/internal/services/apimanagement/api_management_data_source.go index ed166f706d15..59c4b6dcf0f1 100644 --- a/internal/services/apimanagement/api_management_data_source.go +++ b/internal/services/apimanagement/api_management_data_source.go @@ -15,8 +15,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/apimanagement/2023-05-01-preview/apimanagementservice" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tenantaccess" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tenantaccess" "github.com/hashicorp/terraform-provider-azurerm/helpers/azure" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/apimanagement/schemaz" diff --git a/internal/services/apimanagement/api_management_diagnostic_resource.go b/internal/services/apimanagement/api_management_diagnostic_resource.go index f9386fd5e089..a978994fdd2e 100644 --- a/internal/services/apimanagement/api_management_diagnostic_resource.go +++ b/internal/services/apimanagement/api_management_diagnostic_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/commonschema" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/diagnostic" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/logger" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/diagnostic" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/logger" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/apimanagement/schemaz" diff --git a/internal/services/apimanagement/api_management_diagnostic_resource_test.go b/internal/services/apimanagement/api_management_diagnostic_resource_test.go index d81c98448707..a0c675aa9abd 100644 --- a/internal/services/apimanagement/api_management_diagnostic_resource_test.go +++ b/internal/services/apimanagement/api_management_diagnostic_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/apimanagement/2023-05-01-preview/diagnostic" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/diagnostic" "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/apimanagement/api_management_email_template_resource.go b/internal/services/apimanagement/api_management_email_template_resource.go index 60b3eed5053c..9998cd0f45f8 100644 --- a/internal/services/apimanagement/api_management_email_template_resource.go +++ b/internal/services/apimanagement/api_management_email_template_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/apimanagement/2023-05-01-preview/emailtemplates" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/emailtemplates" "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/apimanagement/api_management_email_template_resource_test.go b/internal/services/apimanagement/api_management_email_template_resource_test.go index fe3acc250cc4..e430d85fc82f 100644 --- a/internal/services/apimanagement/api_management_email_template_resource_test.go +++ b/internal/services/apimanagement/api_management_email_template_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/apimanagement/2023-05-01-preview/emailtemplates" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/emailtemplates" "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/apimanagement/api_management_gateway_api_resource.go b/internal/services/apimanagement/api_management_gateway_api_resource.go index be7cc26657c8..e1745eeb4993 100644 --- a/internal/services/apimanagement/api_management_gateway_api_resource.go +++ b/internal/services/apimanagement/api_management_gateway_api_resource.go @@ -10,9 +10,9 @@ import ( "time" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gateway" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/api" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gateway" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewayapi" "github.com/hashicorp/terraform-provider-azurerm/helpers/azure" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" @@ -70,7 +70,7 @@ func resourceApiManagementGatewayApiCreate(d *pluginsdk.ResourceData, meta inter return fmt.Errorf("parsing `api_id`: %v", err) } - gatewayID, err := gateway.ParseGatewayID(d.Get("gateway_id").(string)) + gatewayID, err := gateway.ParseServiceGatewayID(d.Get("gateway_id").(string)) if err != nil { return fmt.Errorf("parsing `gateway_id`: %v", err) } @@ -131,7 +131,7 @@ func resourceApiManagementGatewayApiRead(d *pluginsdk.ResourceData, meta interfa d.SetId("") return nil } - gateway := gatewayapi.NewGatewayID(id.SubscriptionId, id.ResourceGroupName, id.ServiceName, id.GatewayId) + gateway := gatewayapi.NewServiceGatewayID(id.SubscriptionId, id.ResourceGroupName, id.ServiceName, id.GatewayId) d.Set("api_id", apiId.ID()) d.Set("gateway_id", gateway.ID()) diff --git a/internal/services/apimanagement/api_management_gateway_api_resource_test.go b/internal/services/apimanagement/api_management_gateway_api_resource_test.go index f76f12c1159b..a0aa69752a6d 100644 --- a/internal/services/apimanagement/api_management_gateway_api_resource_test.go +++ b/internal/services/apimanagement/api_management_gateway_api_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/apimanagement/2023-05-01-preview/gatewayapi" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewayapi" "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/apimanagement/api_management_gateway_certificate_authority_resource.go b/internal/services/apimanagement/api_management_gateway_certificate_authority_resource.go index eca2077c674a..946275fd73e8 100644 --- a/internal/services/apimanagement/api_management_gateway_certificate_authority_resource.go +++ b/internal/services/apimanagement/api_management_gateway_certificate_authority_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-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewaycertificateauthority" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewaycertificateauthority" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/apimanagement/parse" diff --git a/internal/services/apimanagement/api_management_gateway_certificate_authority_resource_test.go b/internal/services/apimanagement/api_management_gateway_certificate_authority_resource_test.go index adf2fc10e376..7a09bad9ce02 100644 --- a/internal/services/apimanagement/api_management_gateway_certificate_authority_resource_test.go +++ b/internal/services/apimanagement/api_management_gateway_certificate_authority_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/apimanagement/2023-05-01-preview/gatewaycertificateauthority" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewaycertificateauthority" "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/apimanagement/api_management_gateway_data_source.go b/internal/services/apimanagement/api_management_gateway_data_source.go index 2eccb9eb2ea9..633245c09f4d 100644 --- a/internal/services/apimanagement/api_management_gateway_data_source.go +++ b/internal/services/apimanagement/api_management_gateway_data_source.go @@ -9,8 +9,8 @@ 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/apimanagement/2023-05-01-preview/apimanagementservice" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gateway" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gateway" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/apimanagement/schemaz" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" @@ -77,7 +77,7 @@ func dataSourceApiManagementGatewayRead(d *pluginsdk.ResourceData, meta interfac return fmt.Errorf("parsing `api_management_id`: %v", err) } - id := gateway.NewGatewayID(apimId.SubscriptionId, apimId.ResourceGroupName, apimId.ServiceName, d.Get("name").(string)) + id := gateway.NewServiceGatewayID(apimId.SubscriptionId, apimId.ResourceGroupName, apimId.ServiceName, d.Get("name").(string)) resp, err := client.Get(ctx, id) if err != nil { @@ -89,7 +89,7 @@ func dataSourceApiManagementGatewayRead(d *pluginsdk.ResourceData, meta interfac } if resp.Model != nil { - _, err = gateway.ParseGatewayID(*resp.Model.Id) + _, err = gateway.ParseServiceGatewayID(*resp.Model.Id) if err != nil { return fmt.Errorf("parsing Gateway ID %q", *resp.Model.Id) } diff --git a/internal/services/apimanagement/api_management_gateway_host_name_configuration_data_source.go b/internal/services/apimanagement/api_management_gateway_host_name_configuration_data_source.go index c653094c02c2..c5b3a10effd4 100644 --- a/internal/services/apimanagement/api_management_gateway_host_name_configuration_data_source.go +++ b/internal/services/apimanagement/api_management_gateway_host_name_configuration_data_source.go @@ -9,8 +9,8 @@ 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/apimanagement/2023-05-01-preview/apimanagementservice" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayhostnameconfiguration" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewayhostnameconfiguration" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/apimanagement/schemaz" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" diff --git a/internal/services/apimanagement/api_management_gateway_host_name_configuration_resource.go b/internal/services/apimanagement/api_management_gateway_host_name_configuration_resource.go index 9dc881e19341..d2befec25ef1 100644 --- a/internal/services/apimanagement/api_management_gateway_host_name_configuration_resource.go +++ b/internal/services/apimanagement/api_management_gateway_host_name_configuration_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-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayhostnameconfiguration" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewayhostnameconfiguration" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/apimanagement/schemaz" diff --git a/internal/services/apimanagement/api_management_gateway_host_name_configuration_resource_test.go b/internal/services/apimanagement/api_management_gateway_host_name_configuration_resource_test.go index 4e285ca2ba55..bbbd46a4dc09 100644 --- a/internal/services/apimanagement/api_management_gateway_host_name_configuration_resource_test.go +++ b/internal/services/apimanagement/api_management_gateway_host_name_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/apimanagement/2023-05-01-preview/gatewayhostnameconfiguration" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewayhostnameconfiguration" "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/apimanagement/api_management_gateway_resource.go b/internal/services/apimanagement/api_management_gateway_resource.go index 09cdb700f6be..9a4ba3905ac0 100644 --- a/internal/services/apimanagement/api_management_gateway_resource.go +++ b/internal/services/apimanagement/api_management_gateway_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-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gateway" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gateway" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/apimanagement/schemaz" @@ -27,7 +27,7 @@ func resourceApiManagementGateway() *pluginsdk.Resource { Delete: resourceApiManagementGatewayDelete, Importer: pluginsdk.ImporterValidatingResourceId(func(id string) error { - _, err := gateway.ParseGatewayID(id) + _, err := gateway.ParseServiceGatewayID(id) return err }), @@ -92,7 +92,7 @@ func resourceApiManagementGatewayCreateUpdate(d *pluginsdk.ResourceData, meta in return fmt.Errorf("parsing `api_management_id`: %v", err) } - id := gateway.NewGatewayID(apimId.SubscriptionId, apimId.ResourceGroupName, apimId.ServiceName, d.Get("name").(string)) + id := gateway.NewServiceGatewayID(apimId.SubscriptionId, apimId.ResourceGroupName, apimId.ServiceName, d.Get("name").(string)) if d.IsNewResource() { existing, err := client.Get(ctx, id) @@ -131,7 +131,7 @@ func resourceApiManagementGatewayRead(d *pluginsdk.ResourceData, meta interface{ ctx, cancel := timeouts.ForRead(meta.(*clients.Client).StopContext, d) defer cancel() - id, err := gateway.ParseGatewayID(d.Id()) + id, err := gateway.ParseServiceGatewayID(d.Id()) if err != nil { return err } @@ -166,7 +166,7 @@ func resourceApiManagementGatewayDelete(d *pluginsdk.ResourceData, meta interfac ctx, cancel := timeouts.ForDelete(meta.(*clients.Client).StopContext, d) defer cancel() - id, err := gateway.ParseGatewayID(d.Id()) + id, err := gateway.ParseServiceGatewayID(d.Id()) if err != nil { return err } diff --git a/internal/services/apimanagement/api_management_gateway_resource_test.go b/internal/services/apimanagement/api_management_gateway_resource_test.go index bcd62896f339..3322efd9be98 100644 --- a/internal/services/apimanagement/api_management_gateway_resource_test.go +++ b/internal/services/apimanagement/api_management_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/apimanagement/2023-05-01-preview/gateway" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gateway" "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" @@ -113,7 +113,7 @@ func TestAccApiManagementGateway_update(t *testing.T) { } func (ApiManagementGatewayResource) Exists(ctx context.Context, clients *clients.Client, state *pluginsdk.InstanceState) (*bool, error) { - id, err := gateway.ParseGatewayID(state.ID) + id, err := gateway.ParseServiceGatewayID(state.ID) if err != nil { return nil, err } diff --git a/internal/services/apimanagement/api_management_global_schema_resource.go b/internal/services/apimanagement/api_management_global_schema_resource.go index eea4e3d6e39a..34e962e05263 100644 --- a/internal/services/apimanagement/api_management_global_schema_resource.go +++ b/internal/services/apimanagement/api_management_global_schema_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/commonschema" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/schema" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/apimanagement/schemaz" diff --git a/internal/services/apimanagement/api_management_global_schema_resource_test.go b/internal/services/apimanagement/api_management_global_schema_resource_test.go index caa4a589e599..6031141568d7 100644 --- a/internal/services/apimanagement/api_management_global_schema_resource_test.go +++ b/internal/services/apimanagement/api_management_global_schema_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/apimanagement/2023-05-01-preview/schema" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/schema" "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/apimanagement/api_management_group_data_source.go b/internal/services/apimanagement/api_management_group_data_source.go index 286552e1e40f..e2e373b91e1e 100644 --- a/internal/services/apimanagement/api_management_group_data_source.go +++ b/internal/services/apimanagement/api_management_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-helpers/resourcemanager/commonschema" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/group" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/apimanagement/schemaz" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" diff --git a/internal/services/apimanagement/api_management_group_resource.go b/internal/services/apimanagement/api_management_group_resource.go index 27cb534bdfc9..814b25563e64 100644 --- a/internal/services/apimanagement/api_management_group_resource.go +++ b/internal/services/apimanagement/api_management_group_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/apimanagement/2023-05-01-preview/group" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/group" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/apimanagement/schemaz" diff --git a/internal/services/apimanagement/api_management_group_resource_test.go b/internal/services/apimanagement/api_management_group_resource_test.go index 2c5de8c025fc..6aacc4fd847a 100644 --- a/internal/services/apimanagement/api_management_group_resource_test.go +++ b/internal/services/apimanagement/api_management_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/apimanagement/2023-05-01-preview/group" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/group" "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/apimanagement/api_management_group_user_resource.go b/internal/services/apimanagement/api_management_group_user_resource.go index 70a66c69e500..f04381caa3c5 100644 --- a/internal/services/apimanagement/api_management_group_user_resource.go +++ b/internal/services/apimanagement/api_management_group_user_resource.go @@ -10,7 +10,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/apimanagement/2023-05-01-preview/groupuser" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/groupuser" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/apimanagement/schemaz" diff --git a/internal/services/apimanagement/api_management_group_user_resource_test.go b/internal/services/apimanagement/api_management_group_user_resource_test.go index cf29046ac626..865f299c4499 100644 --- a/internal/services/apimanagement/api_management_group_user_resource_test.go +++ b/internal/services/apimanagement/api_management_group_user_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/apimanagement/2023-05-01-preview/groupuser" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/groupuser" "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/apimanagement/api_management_identity_provider_aad_resource.go b/internal/services/apimanagement/api_management_identity_provider_aad_resource.go index f325e8035a7c..8b928745ae12 100644 --- a/internal/services/apimanagement/api_management_identity_provider_aad_resource.go +++ b/internal/services/apimanagement/api_management_identity_provider_aad_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/apimanagement/2023-05-01-preview/identityprovider" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/identityprovider" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/apimanagement/schemaz" diff --git a/internal/services/apimanagement/api_management_identity_provider_aad_resource_test.go b/internal/services/apimanagement/api_management_identity_provider_aad_resource_test.go index 0abdb266af4e..732d4676ff13 100644 --- a/internal/services/apimanagement/api_management_identity_provider_aad_resource_test.go +++ b/internal/services/apimanagement/api_management_identity_provider_aad_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/apimanagement/2023-05-01-preview/identityprovider" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/identityprovider" "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/apimanagement/api_management_identity_provider_aadb2c_resource.go b/internal/services/apimanagement/api_management_identity_provider_aadb2c_resource.go index ae1bf17d4715..6bde6353ca27 100644 --- a/internal/services/apimanagement/api_management_identity_provider_aadb2c_resource.go +++ b/internal/services/apimanagement/api_management_identity_provider_aadb2c_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/apimanagement/2023-05-01-preview/identityprovider" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/identityprovider" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/apimanagement/schemaz" diff --git a/internal/services/apimanagement/api_management_identity_provider_aadb2c_resource_test.go b/internal/services/apimanagement/api_management_identity_provider_aadb2c_resource_test.go index 4e37d86757b3..3aa4c20c70cf 100644 --- a/internal/services/apimanagement/api_management_identity_provider_aadb2c_resource_test.go +++ b/internal/services/apimanagement/api_management_identity_provider_aadb2c_resource_test.go @@ -11,7 +11,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/pointer" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/identityprovider" "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/apimanagement/api_management_identity_provider_facebook_resource.go b/internal/services/apimanagement/api_management_identity_provider_facebook_resource.go index 9e7ec7bfa5c6..73600f8fa28a 100644 --- a/internal/services/apimanagement/api_management_identity_provider_facebook_resource.go +++ b/internal/services/apimanagement/api_management_identity_provider_facebook_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/apimanagement/2023-05-01-preview/identityprovider" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/identityprovider" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/apimanagement/schemaz" diff --git a/internal/services/apimanagement/api_management_identity_provider_facebook_resource_test.go b/internal/services/apimanagement/api_management_identity_provider_facebook_resource_test.go index 54e8ce2ef5bf..424cd0a6c5ce 100644 --- a/internal/services/apimanagement/api_management_identity_provider_facebook_resource_test.go +++ b/internal/services/apimanagement/api_management_identity_provider_facebook_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/apimanagement/2023-05-01-preview/identityprovider" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/identityprovider" "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/apimanagement/api_management_identity_provider_google_resource.go b/internal/services/apimanagement/api_management_identity_provider_google_resource.go index 41ab848877e0..79fe5b753f9e 100644 --- a/internal/services/apimanagement/api_management_identity_provider_google_resource.go +++ b/internal/services/apimanagement/api_management_identity_provider_google_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/apimanagement/2023-05-01-preview/identityprovider" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/identityprovider" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/apimanagement/schemaz" diff --git a/internal/services/apimanagement/api_management_identity_provider_google_resource_test.go b/internal/services/apimanagement/api_management_identity_provider_google_resource_test.go index 87462cdf7312..10505ed6a541 100644 --- a/internal/services/apimanagement/api_management_identity_provider_google_resource_test.go +++ b/internal/services/apimanagement/api_management_identity_provider_google_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/apimanagement/2023-05-01-preview/identityprovider" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/identityprovider" "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/apimanagement/api_management_identity_provider_microsoft_resource.go b/internal/services/apimanagement/api_management_identity_provider_microsoft_resource.go index 90e76bff7018..c170e1e380af 100644 --- a/internal/services/apimanagement/api_management_identity_provider_microsoft_resource.go +++ b/internal/services/apimanagement/api_management_identity_provider_microsoft_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/apimanagement/2023-05-01-preview/identityprovider" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/identityprovider" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/apimanagement/schemaz" diff --git a/internal/services/apimanagement/api_management_identity_provider_microsoft_resource_test.go b/internal/services/apimanagement/api_management_identity_provider_microsoft_resource_test.go index 61c546d7926d..07d0a4a383b5 100644 --- a/internal/services/apimanagement/api_management_identity_provider_microsoft_resource_test.go +++ b/internal/services/apimanagement/api_management_identity_provider_microsoft_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/apimanagement/2023-05-01-preview/identityprovider" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/identityprovider" "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/apimanagement/api_management_identity_provider_twitter_resource.go b/internal/services/apimanagement/api_management_identity_provider_twitter_resource.go index 0879485b0a8d..c238322caceb 100644 --- a/internal/services/apimanagement/api_management_identity_provider_twitter_resource.go +++ b/internal/services/apimanagement/api_management_identity_provider_twitter_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/apimanagement/2023-05-01-preview/identityprovider" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/identityprovider" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/apimanagement/schemaz" diff --git a/internal/services/apimanagement/api_management_identity_provider_twitter_resource_test.go b/internal/services/apimanagement/api_management_identity_provider_twitter_resource_test.go index 62ca31b54fb6..7d5cb1610460 100644 --- a/internal/services/apimanagement/api_management_identity_provider_twitter_resource_test.go +++ b/internal/services/apimanagement/api_management_identity_provider_twitter_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/apimanagement/2023-05-01-preview/identityprovider" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/identityprovider" "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/apimanagement/api_management_logger_resource.go b/internal/services/apimanagement/api_management_logger_resource.go index f7117b15e554..55718ab1d7a8 100644 --- a/internal/services/apimanagement/api_management_logger_resource.go +++ b/internal/services/apimanagement/api_management_logger_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/apimanagement/2023-05-01-preview/logger" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/logger" "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/apimanagement/api_management_logger_resource_test.go b/internal/services/apimanagement/api_management_logger_resource_test.go index 60c14acaa08b..823307319fab 100644 --- a/internal/services/apimanagement/api_management_logger_resource_test.go +++ b/internal/services/apimanagement/api_management_logger_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/apimanagement/2023-05-01-preview/logger" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/logger" "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/apimanagement/api_management_named_value_resource.go b/internal/services/apimanagement/api_management_named_value_resource.go index 6a84c5daac1d..581c2d88f825 100644 --- a/internal/services/apimanagement/api_management_named_value_resource.go +++ b/internal/services/apimanagement/api_management_named_value_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/apimanagement/2023-05-01-preview/namedvalue" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/namedvalue" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/apimanagement/schemaz" diff --git a/internal/services/apimanagement/api_management_named_value_resource_test.go b/internal/services/apimanagement/api_management_named_value_resource_test.go index f48747c8086e..092a28ce2c23 100644 --- a/internal/services/apimanagement/api_management_named_value_resource_test.go +++ b/internal/services/apimanagement/api_management_named_value_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/apimanagement/2023-05-01-preview/namedvalue" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/namedvalue" "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/apimanagement/api_management_notification_recipient_email.go b/internal/services/apimanagement/api_management_notification_recipient_email.go index 528305fda7c1..01db57707b89 100644 --- a/internal/services/apimanagement/api_management_notification_recipient_email.go +++ b/internal/services/apimanagement/api_management_notification_recipient_email.go @@ -9,8 +9,8 @@ import ( "time" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/notificationrecipientemail" "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/apimanagement/validate" diff --git a/internal/services/apimanagement/api_management_notification_recipient_email_test.go b/internal/services/apimanagement/api_management_notification_recipient_email_test.go index f00b78c24dd0..294753d8aac3 100644 --- a/internal/services/apimanagement/api_management_notification_recipient_email_test.go +++ b/internal/services/apimanagement/api_management_notification_recipient_email_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/apimanagement/2023-05-01-preview/notificationrecipientemail" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/notificationrecipientemail" "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/apimanagement/api_management_notification_recipient_user.go b/internal/services/apimanagement/api_management_notification_recipient_user.go index 4cd09a19217e..54acf540d4d2 100644 --- a/internal/services/apimanagement/api_management_notification_recipient_user.go +++ b/internal/services/apimanagement/api_management_notification_recipient_user.go @@ -9,8 +9,8 @@ import ( "time" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/notificationrecipientuser" "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/apimanagement/validate" diff --git a/internal/services/apimanagement/api_management_notification_recipient_user_test.go b/internal/services/apimanagement/api_management_notification_recipient_user_test.go index a276888a70aa..1caa78db9bea 100644 --- a/internal/services/apimanagement/api_management_notification_recipient_user_test.go +++ b/internal/services/apimanagement/api_management_notification_recipient_user_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/apimanagement/2023-05-01-preview/notificationrecipientuser" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/notificationrecipientuser" "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/apimanagement/api_management_openid_connect_provider_resource.go b/internal/services/apimanagement/api_management_openid_connect_provider_resource.go index 6b634e69d0a3..52e21550d5bb 100644 --- a/internal/services/apimanagement/api_management_openid_connect_provider_resource.go +++ b/internal/services/apimanagement/api_management_openid_connect_provider_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/apimanagement/2023-05-01-preview/openidconnectprovider" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/openidconnectprovider" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/apimanagement/schemaz" diff --git a/internal/services/apimanagement/api_management_openid_connect_provider_resource_test.go b/internal/services/apimanagement/api_management_openid_connect_provider_resource_test.go index 333f75ab9f07..992e68b179c2 100644 --- a/internal/services/apimanagement/api_management_openid_connect_provider_resource_test.go +++ b/internal/services/apimanagement/api_management_openid_connect_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/apimanagement/2023-05-01-preview/openidconnectprovider" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/openidconnectprovider" "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/apimanagement/api_management_policy_fragment_resource.go b/internal/services/apimanagement/api_management_policy_fragment_resource.go index beeed688cfc2..4cb1178f2ab2 100644 --- a/internal/services/apimanagement/api_management_policy_fragment_resource.go +++ b/internal/services/apimanagement/api_management_policy_fragment_resource.go @@ -12,8 +12,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/apimanagement/2023-05-01-preview/apimanagementservice" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/policyfragment" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/apimanagement/schemaz" diff --git a/internal/services/apimanagement/api_management_policy_fragment_resource_test.go b/internal/services/apimanagement/api_management_policy_fragment_resource_test.go index 7e107e76c11f..3023207abd4c 100644 --- a/internal/services/apimanagement/api_management_policy_fragment_resource_test.go +++ b/internal/services/apimanagement/api_management_policy_fragment_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/apimanagement/2023-05-01-preview/policyfragment" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/policyfragment" "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/apimanagement/api_management_policy_resource.go b/internal/services/apimanagement/api_management_policy_resource.go index edcdbe81f4d0..e7a6e40656dd 100644 --- a/internal/services/apimanagement/api_management_policy_resource.go +++ b/internal/services/apimanagement/api_management_policy_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-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policy" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/policy" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/apimanagement/migration" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" diff --git a/internal/services/apimanagement/api_management_policy_resource_test.go b/internal/services/apimanagement/api_management_policy_resource_test.go index aa3aa6792eca..2b1441281c04 100644 --- a/internal/services/apimanagement/api_management_policy_resource_test.go +++ b/internal/services/apimanagement/api_management_policy_resource_test.go @@ -9,8 +9,8 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/pointer" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policy" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/policy" "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/apimanagement/api_management_product_api_resource.go b/internal/services/apimanagement/api_management_product_api_resource.go index df61ed892cdf..be784fd75867 100644 --- a/internal/services/apimanagement/api_management_product_api_resource.go +++ b/internal/services/apimanagement/api_management_product_api_resource.go @@ -10,7 +10,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/apimanagement/2023-05-01-preview/productapi" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productapi" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/apimanagement/schemaz" diff --git a/internal/services/apimanagement/api_management_product_api_resource_test.go b/internal/services/apimanagement/api_management_product_api_resource_test.go index a91d1bdbfe7a..32c1c91da482 100644 --- a/internal/services/apimanagement/api_management_product_api_resource_test.go +++ b/internal/services/apimanagement/api_management_product_api_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/apimanagement/2023-05-01-preview/productapi" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productapi" "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/apimanagement/api_management_product_data_source.go b/internal/services/apimanagement/api_management_product_data_source.go index ce0c9a69315a..c58fefb62f6d 100644 --- a/internal/services/apimanagement/api_management_product_data_source.go +++ b/internal/services/apimanagement/api_management_product_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-helpers/resourcemanager/commonschema" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/product" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/apimanagement/schemaz" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" diff --git a/internal/services/apimanagement/api_management_product_group_resource.go b/internal/services/apimanagement/api_management_product_group_resource.go index 6c5c588a9d51..e06e9e2f8383 100644 --- a/internal/services/apimanagement/api_management_product_group_resource.go +++ b/internal/services/apimanagement/api_management_product_group_resource.go @@ -10,7 +10,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/apimanagement/2023-05-01-preview/productgroup" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productgroup" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/apimanagement/schemaz" diff --git a/internal/services/apimanagement/api_management_product_group_resource_test.go b/internal/services/apimanagement/api_management_product_group_resource_test.go index 12a909bc28db..054b62d4e47e 100644 --- a/internal/services/apimanagement/api_management_product_group_resource_test.go +++ b/internal/services/apimanagement/api_management_product_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/apimanagement/2023-05-01-preview/productgroup" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productgroup" "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/apimanagement/api_management_product_policy_resource.go b/internal/services/apimanagement/api_management_product_policy_resource.go index ecb9d4c806d9..a017b202c789 100644 --- a/internal/services/apimanagement/api_management_product_policy_resource.go +++ b/internal/services/apimanagement/api_management_product_policy_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/commonschema" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productpolicy" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productpolicy" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/apimanagement/migration" diff --git a/internal/services/apimanagement/api_management_product_policy_resource_test.go b/internal/services/apimanagement/api_management_product_policy_resource_test.go index 272a39e9390a..4fbb09de4444 100644 --- a/internal/services/apimanagement/api_management_product_policy_resource_test.go +++ b/internal/services/apimanagement/api_management_product_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/apimanagement/2023-05-01-preview/productpolicy" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productpolicy" "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/apimanagement/api_management_product_resource.go b/internal/services/apimanagement/api_management_product_resource.go index 16a9d81f8a11..36d0de73a4a6 100644 --- a/internal/services/apimanagement/api_management_product_resource.go +++ b/internal/services/apimanagement/api_management_product_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/apimanagement/2023-05-01-preview/product" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/product" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/apimanagement/schemaz" diff --git a/internal/services/apimanagement/api_management_product_resource_test.go b/internal/services/apimanagement/api_management_product_resource_test.go index ce16d6c95463..7535d0ca6728 100644 --- a/internal/services/apimanagement/api_management_product_resource_test.go +++ b/internal/services/apimanagement/api_management_product_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/apimanagement/2023-05-01-preview/product" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/product" "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/apimanagement/api_management_product_tag_resource.go b/internal/services/apimanagement/api_management_product_tag_resource.go index 57bac4ebdd71..a22058f4d4c5 100644 --- a/internal/services/apimanagement/api_management_product_tag_resource.go +++ b/internal/services/apimanagement/api_management_product_tag_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/apimanagement/2023-05-01-preview/producttag" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/producttag" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/apimanagement/schemaz" diff --git a/internal/services/apimanagement/api_management_product_tag_resource_test.go b/internal/services/apimanagement/api_management_product_tag_resource_test.go index 0f25f46097a3..2590dc0b0ab7 100644 --- a/internal/services/apimanagement/api_management_product_tag_resource_test.go +++ b/internal/services/apimanagement/api_management_product_tag_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/apimanagement/2023-05-01-preview/producttag" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/producttag" "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/apimanagement/api_management_redis_cache_resource.go b/internal/services/apimanagement/api_management_redis_cache_resource.go index 590d2d020c2d..4bde418187f2 100644 --- a/internal/services/apimanagement/api_management_redis_cache_resource.go +++ b/internal/services/apimanagement/api_management_redis_cache_resource.go @@ -12,8 +12,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/apimanagement/2023-05-01-preview/apimanagementservice" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/cache" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/cache" "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/apimanagement/api_management_redis_cache_resource_test.go b/internal/services/apimanagement/api_management_redis_cache_resource_test.go index a198c746aa77..0cde125eb005 100644 --- a/internal/services/apimanagement/api_management_redis_cache_resource_test.go +++ b/internal/services/apimanagement/api_management_redis_cache_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/apimanagement/2023-05-01-preview/cache" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/cache" "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/apimanagement/api_management_resource.go b/internal/services/apimanagement/api_management_resource.go index a9431e42f508..8133a9e8f471 100644 --- a/internal/services/apimanagement/api_management_resource.go +++ b/internal/services/apimanagement/api_management_resource.go @@ -19,15 +19,15 @@ 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/apimanagement/2023-05-01-preview/api" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/delegationsettings" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/deletedservice" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policy" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signinsettings" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signupsettings" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tenantaccess" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/api" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/delegationsettings" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/deletedservice" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/policy" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/product" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/signinsettings" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/signupsettings" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tenantaccess" "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/apimanagement/api_management_resource_test.go b/internal/services/apimanagement/api_management_resource_test.go index 9b96daaefc75..a96e79c5fc04 100644 --- a/internal/services/apimanagement/api_management_resource_test.go +++ b/internal/services/apimanagement/api_management_resource_test.go @@ -11,9 +11,9 @@ import ( "time" "github.com/hashicorp/go-azure-helpers/lang/pointer" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/api" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/product" "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/testclient" diff --git a/internal/services/apimanagement/api_management_subscription_resource.go b/internal/services/apimanagement/api_management_subscription_resource.go index 9ab481360bba..702492dd4001 100644 --- a/internal/services/apimanagement/api_management_subscription_resource.go +++ b/internal/services/apimanagement/api_management_subscription_resource.go @@ -15,9 +15,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/commonschema" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/api" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/product" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/subscription" "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/apimanagement/api_management_subscription_resource_test.go b/internal/services/apimanagement/api_management_subscription_resource_test.go index 9a5f3746b44a..4cc2c2d64ec6 100644 --- a/internal/services/apimanagement/api_management_subscription_resource_test.go +++ b/internal/services/apimanagement/api_management_subscription_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/apimanagement/2023-05-01-preview/subscription" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/subscription" "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/apimanagement/api_management_tag_resource.go b/internal/services/apimanagement/api_management_tag_resource.go index ff101d4e8074..2df65822678b 100644 --- a/internal/services/apimanagement/api_management_tag_resource.go +++ b/internal/services/apimanagement/api_management_tag_resource.go @@ -9,8 +9,8 @@ import ( "time" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tag" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/apimanagement/validate" diff --git a/internal/services/apimanagement/api_management_tag_resource_test.go b/internal/services/apimanagement/api_management_tag_resource_test.go index 274703466704..8cce1a4e269d 100644 --- a/internal/services/apimanagement/api_management_tag_resource_test.go +++ b/internal/services/apimanagement/api_management_tag_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/apimanagement/2023-05-01-preview/tag" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tag" "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/apimanagement/api_management_user_data_source.go b/internal/services/apimanagement/api_management_user_data_source.go index f80473ed60b8..df23cc90a217 100644 --- a/internal/services/apimanagement/api_management_user_data_source.go +++ b/internal/services/apimanagement/api_management_user_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-helpers/resourcemanager/commonschema" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/user" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/user" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/apimanagement/schemaz" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" diff --git a/internal/services/apimanagement/api_management_user_resource.go b/internal/services/apimanagement/api_management_user_resource.go index ad9be9a8cfad..1472c6d0b7ab 100644 --- a/internal/services/apimanagement/api_management_user_resource.go +++ b/internal/services/apimanagement/api_management_user_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/apimanagement/2023-05-01-preview/user" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/user" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/apimanagement/schemaz" diff --git a/internal/services/apimanagement/api_management_user_resource_test.go b/internal/services/apimanagement/api_management_user_resource_test.go index 9d8293513985..c5e85bd93929 100644 --- a/internal/services/apimanagement/api_management_user_resource_test.go +++ b/internal/services/apimanagement/api_management_user_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/apimanagement/2023-05-01-preview/user" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/user" "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/apimanagement/client/client.go b/internal/services/apimanagement/client/client.go index 7d3e197a6f9f..31e617e6a60d 100644 --- a/internal/services/apimanagement/client/client.go +++ b/internal/services/apimanagement/client/client.go @@ -6,53 +6,53 @@ package client import ( "fmt" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationtag" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apipolicy" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitag" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitagdescription" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionsets" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/authorizationserver" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/cache" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/certificate" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/delegationsettings" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/deletedservice" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/diagnostic" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/emailtemplates" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gateway" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewaycertificateauthority" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayhostnameconfiguration" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/logger" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/openidconnectprovider" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policy" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productapi" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productgroup" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productpolicy" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/producttag" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signinsettings" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signupsettings" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tenantaccess" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/user" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/api" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apidiagnostic" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperation" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperationpolicy" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperationtag" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apipolicy" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apirelease" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apischema" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apitag" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apitagdescription" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apiversionset" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apiversionsets" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/authorizationserver" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/backend" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/cache" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/certificate" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/delegationsettings" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/deletedservice" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/diagnostic" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/emailtemplates" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gateway" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewayapi" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewaycertificateauthority" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewayhostnameconfiguration" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/group" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/groupuser" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/identityprovider" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/logger" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/namedvalue" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/notificationrecipientemail" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/notificationrecipientuser" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/openidconnectprovider" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/policy" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/policyfragment" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/product" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productapi" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productgroup" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productpolicy" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/producttag" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/schema" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/signinsettings" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/signupsettings" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/subscription" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tag" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tenantaccess" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/user" "github.com/hashicorp/terraform-provider-azurerm/internal/common" ) diff --git a/internal/services/apimanagement/identity_provider_import.go b/internal/services/apimanagement/identity_provider_import.go index 2daa3629ed16..64035f012cd8 100644 --- a/internal/services/apimanagement/identity_provider_import.go +++ b/internal/services/apimanagement/identity_provider_import.go @@ -6,7 +6,7 @@ package apimanagement import ( "fmt" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/identityprovider" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" ) diff --git a/internal/services/apimanagement/migration/api_operation_policy_v1_to_v2.go b/internal/services/apimanagement/migration/api_operation_policy_v1_to_v2.go index 61a49019f861..6607a71b422a 100644 --- a/internal/services/apimanagement/migration/api_operation_policy_v1_to_v2.go +++ b/internal/services/apimanagement/migration/api_operation_policy_v1_to_v2.go @@ -8,7 +8,7 @@ import ( "log" "strings" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperationpolicy" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" ) diff --git a/internal/services/apimanagement/migration/api_policy_v1_to_v2.go b/internal/services/apimanagement/migration/api_policy_v1_to_v2.go index 6321368fd43c..6805e07a9264 100644 --- a/internal/services/apimanagement/migration/api_policy_v1_to_v2.go +++ b/internal/services/apimanagement/migration/api_policy_v1_to_v2.go @@ -8,7 +8,7 @@ import ( "log" "strings" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apipolicy" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apipolicy" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" ) diff --git a/internal/services/apimanagement/migration/api_product_policy_v1_to_v2.go b/internal/services/apimanagement/migration/api_product_policy_v1_to_v2.go index 1e3dd1f5787f..cd61b9e013be 100644 --- a/internal/services/apimanagement/migration/api_product_policy_v1_to_v2.go +++ b/internal/services/apimanagement/migration/api_product_policy_v1_to_v2.go @@ -8,7 +8,7 @@ import ( "log" "strings" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productpolicy" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productpolicy" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" ) diff --git a/internal/services/apimanagement/migration/policy.go b/internal/services/apimanagement/migration/policy.go index 49f44fa0dded..b82e401889d3 100644 --- a/internal/services/apimanagement/migration/policy.go +++ b/internal/services/apimanagement/migration/policy.go @@ -9,7 +9,7 @@ import ( "html" "github.com/hashicorp/go-azure-helpers/lang/pointer" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policy" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/policy" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" ) diff --git a/internal/services/apimanagement/migration/policy_v2_to_v3.go b/internal/services/apimanagement/migration/policy_v2_to_v3.go index d16b01cb0f47..f2ee19b95416 100644 --- a/internal/services/apimanagement/migration/policy_v2_to_v3.go +++ b/internal/services/apimanagement/migration/policy_v2_to_v3.go @@ -9,7 +9,7 @@ import ( "log" "strings" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" ) diff --git a/internal/services/apimanagement/schemaz/api_management.go b/internal/services/apimanagement/schemaz/api_management.go index aa1cf796a55b..e30790b8efff 100644 --- a/internal/services/apimanagement/schemaz/api_management.go +++ b/internal/services/apimanagement/schemaz/api_management.go @@ -9,7 +9,7 @@ import ( "strings" "github.com/hashicorp/go-azure-helpers/lang/pointer" - "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation" + "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperation" "github.com/hashicorp/terraform-provider-azurerm/internal/services/apimanagement/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic/README.md deleted file mode 100644 index 7a2e0908c891..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic/README.md +++ /dev/null @@ -1,119 +0,0 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic` Documentation - -The `apidiagnostic` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2023-05-01-preview`). - -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/apimanagement/2023-05-01-preview/apidiagnostic" -``` - -### Client Initialization - -```go -client := apidiagnostic.NewApiDiagnosticClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - -### Example Usage: `ApiDiagnosticClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := apidiagnostic.NewApiDiagnosticID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apiId", "diagnosticId") - -payload := apidiagnostic.DiagnosticContract{ - // ... -} - - -read, err := client.CreateOrUpdate(ctx, id, payload, apidiagnostic.DefaultCreateOrUpdateOperationOptions()) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - -### Example Usage: `ApiDiagnosticClient.Delete` - -```go -ctx := context.TODO() -id := apidiagnostic.NewApiDiagnosticID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apiId", "diagnosticId") - -read, err := client.Delete(ctx, id, apidiagnostic.DefaultDeleteOperationOptions()) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - -### Example Usage: `ApiDiagnosticClient.Get` - -```go -ctx := context.TODO() -id := apidiagnostic.NewApiDiagnosticID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apiId", "diagnosticId") - -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: `ApiDiagnosticClient.GetEntityTag` - -```go -ctx := context.TODO() -id := apidiagnostic.NewApiDiagnosticID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apiId", "diagnosticId") - -read, err := client.GetEntityTag(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - -### Example Usage: `ApiDiagnosticClient.ListByService` - -```go -ctx := context.TODO() -id := apidiagnostic.NewApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apiId") - -// alternatively `client.ListByService(ctx, id, apidiagnostic.DefaultListByServiceOperationOptions())` can be used to do batched pagination -items, err := client.ListByServiceComplete(ctx, id, apidiagnostic.DefaultListByServiceOperationOptions()) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - -### Example Usage: `ApiDiagnosticClient.Update` - -```go -ctx := context.TODO() -id := apidiagnostic.NewApiDiagnosticID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apiId", "diagnosticId") - -payload := apidiagnostic.DiagnosticContract{ - // ... -} - - -read, err := client.Update(ctx, id, payload, apidiagnostic.DefaultUpdateOperationOptions()) -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/apimanagement/2023-05-01-preview/backend/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/README.md deleted file mode 100644 index efd3df0c0f95..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/README.md +++ /dev/null @@ -1,119 +0,0 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend` Documentation - -The `backend` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2023-05-01-preview`). - -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/apimanagement/2023-05-01-preview/backend" -``` - -### Client Initialization - -```go -client := backend.NewBackendClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - -### Example Usage: `BackendClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := backend.NewBackendID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "backendId") - -payload := backend.BackendContract{ - // ... -} - - -read, err := client.CreateOrUpdate(ctx, id, payload, backend.DefaultCreateOrUpdateOperationOptions()) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - -### Example Usage: `BackendClient.Delete` - -```go -ctx := context.TODO() -id := backend.NewBackendID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "backendId") - -read, err := client.Delete(ctx, id, backend.DefaultDeleteOperationOptions()) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - -### Example Usage: `BackendClient.Get` - -```go -ctx := context.TODO() -id := backend.NewBackendID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "backendId") - -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: `BackendClient.GetEntityTag` - -```go -ctx := context.TODO() -id := backend.NewBackendID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "backendId") - -read, err := client.GetEntityTag(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - -### Example Usage: `BackendClient.ListByService` - -```go -ctx := context.TODO() -id := backend.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") - -// alternatively `client.ListByService(ctx, id, backend.DefaultListByServiceOperationOptions())` can be used to do batched pagination -items, err := client.ListByServiceComplete(ctx, id, backend.DefaultListByServiceOperationOptions()) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - -### Example Usage: `BackendClient.Update` - -```go -ctx := context.TODO() -id := backend.NewBackendID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "backendId") - -payload := backend.BackendUpdateParameters{ - // ... -} - - -read, err := client.Update(ctx, id, payload, backend.DefaultUpdateOperationOptions()) -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/apimanagement/2023-05-01-preview/certificate/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/certificate/README.md deleted file mode 100644 index 658ab2b6240e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/certificate/README.md +++ /dev/null @@ -1,114 +0,0 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/certificate` Documentation - -The `certificate` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2023-05-01-preview`). - -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/apimanagement/2023-05-01-preview/certificate" -``` - -### Client Initialization - -```go -client := certificate.NewCertificateClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - -### Example Usage: `CertificateClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := certificate.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "certificateId") - -payload := certificate.CertificateCreateOrUpdateParameters{ - // ... -} - - -read, err := client.CreateOrUpdate(ctx, id, payload, certificate.DefaultCreateOrUpdateOperationOptions()) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - -### Example Usage: `CertificateClient.Delete` - -```go -ctx := context.TODO() -id := certificate.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "certificateId") - -read, err := client.Delete(ctx, id, certificate.DefaultDeleteOperationOptions()) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - -### Example Usage: `CertificateClient.Get` - -```go -ctx := context.TODO() -id := certificate.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "certificateId") - -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: `CertificateClient.GetEntityTag` - -```go -ctx := context.TODO() -id := certificate.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "certificateId") - -read, err := client.GetEntityTag(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - -### Example Usage: `CertificateClient.ListByService` - -```go -ctx := context.TODO() -id := certificate.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") - -// alternatively `client.ListByService(ctx, id, certificate.DefaultListByServiceOperationOptions())` can be used to do batched pagination -items, err := client.ListByServiceComplete(ctx, id, certificate.DefaultListByServiceOperationOptions()) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - -### Example Usage: `CertificateClient.RefreshSecret` - -```go -ctx := context.TODO() -id := certificate.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "certificateId") - -read, err := client.RefreshSecret(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/apimanagement/2023-05-01-preview/diagnostic/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/diagnostic/README.md deleted file mode 100644 index b01a3c7a17a4..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/diagnostic/README.md +++ /dev/null @@ -1,119 +0,0 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/diagnostic` Documentation - -The `diagnostic` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2023-05-01-preview`). - -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/apimanagement/2023-05-01-preview/diagnostic" -``` - -### Client Initialization - -```go -client := diagnostic.NewDiagnosticClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - -### Example Usage: `DiagnosticClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := diagnostic.NewDiagnosticID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "diagnosticId") - -payload := diagnostic.DiagnosticContract{ - // ... -} - - -read, err := client.CreateOrUpdate(ctx, id, payload, diagnostic.DefaultCreateOrUpdateOperationOptions()) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - -### Example Usage: `DiagnosticClient.Delete` - -```go -ctx := context.TODO() -id := diagnostic.NewDiagnosticID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "diagnosticId") - -read, err := client.Delete(ctx, id, diagnostic.DefaultDeleteOperationOptions()) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - -### Example Usage: `DiagnosticClient.Get` - -```go -ctx := context.TODO() -id := diagnostic.NewDiagnosticID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "diagnosticId") - -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: `DiagnosticClient.GetEntityTag` - -```go -ctx := context.TODO() -id := diagnostic.NewDiagnosticID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "diagnosticId") - -read, err := client.GetEntityTag(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - -### Example Usage: `DiagnosticClient.ListByService` - -```go -ctx := context.TODO() -id := diagnostic.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") - -// alternatively `client.ListByService(ctx, id, diagnostic.DefaultListByServiceOperationOptions())` can be used to do batched pagination -items, err := client.ListByServiceComplete(ctx, id, diagnostic.DefaultListByServiceOperationOptions()) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - -### Example Usage: `DiagnosticClient.Update` - -```go -ctx := context.TODO() -id := diagnostic.NewDiagnosticID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "diagnosticId") - -payload := diagnostic.DiagnosticContract{ - // ... -} - - -read, err := client.Update(ctx, id, payload, diagnostic.DefaultUpdateOperationOptions()) -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/apimanagement/2023-05-01-preview/logger/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/logger/README.md deleted file mode 100644 index ed2994171800..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/logger/README.md +++ /dev/null @@ -1,119 +0,0 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/logger` Documentation - -The `logger` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2023-05-01-preview`). - -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/apimanagement/2023-05-01-preview/logger" -``` - -### Client Initialization - -```go -client := logger.NewLoggerClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - -### Example Usage: `LoggerClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := logger.NewLoggerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "loggerId") - -payload := logger.LoggerContract{ - // ... -} - - -read, err := client.CreateOrUpdate(ctx, id, payload, logger.DefaultCreateOrUpdateOperationOptions()) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - -### Example Usage: `LoggerClient.Delete` - -```go -ctx := context.TODO() -id := logger.NewLoggerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "loggerId") - -read, err := client.Delete(ctx, id, logger.DefaultDeleteOperationOptions()) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - -### Example Usage: `LoggerClient.Get` - -```go -ctx := context.TODO() -id := logger.NewLoggerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "loggerId") - -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: `LoggerClient.GetEntityTag` - -```go -ctx := context.TODO() -id := logger.NewLoggerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "loggerId") - -read, err := client.GetEntityTag(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - -### Example Usage: `LoggerClient.ListByService` - -```go -ctx := context.TODO() -id := logger.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") - -// alternatively `client.ListByService(ctx, id, logger.DefaultListByServiceOperationOptions())` can be used to do batched pagination -items, err := client.ListByServiceComplete(ctx, id, logger.DefaultListByServiceOperationOptions()) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - -### Example Usage: `LoggerClient.Update` - -```go -ctx := context.TODO() -id := logger.NewLoggerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "loggerId") - -payload := logger.LoggerUpdateContract{ - // ... -} - - -read, err := client.Update(ctx, id, payload, logger.DefaultUpdateOperationOptions()) -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/apimanagement/2023-05-01-preview/api/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/api/README.md similarity index 83% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/api/README.md index dd3d160ceb09..2936b2552347 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/api/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/api` Documentation -The `api` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2023-05-01-preview`). +The `api` SDK allows for interaction with Azure Resource Manager `apimanagement` (API Version `2024-05-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/apimanagement/2023-05-01-preview/api" +import "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/api" ``` @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := api.NewApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue") +id := api.NewApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apiId") payload := api.ApiCreateOrUpdateParameter{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload, api.DefaultCreateOrUpd ```go ctx := context.TODO() -id := api.NewApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue") +id := api.NewApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apiId") if err := client.DeleteThenPoll(ctx, id, api.DefaultDeleteOperationOptions()); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id, api.DefaultDeleteOperationOptions()); e ```go ctx := context.TODO() -id := api.NewApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue") +id := api.NewApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apiId") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := api.NewApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue") +id := api.NewApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apiId") read, err := client.GetEntityTag(ctx, id) if err != nil { @@ -85,7 +85,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := api.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue") +id := api.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") // alternatively `client.ListByService(ctx, id, api.DefaultListByServiceOperationOptions())` can be used to do batched pagination items, err := client.ListByServiceComplete(ctx, id, api.DefaultListByServiceOperationOptions()) @@ -102,7 +102,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := api.NewApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue") +id := api.NewApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apiId") payload := api.ApiUpdateContract{ // ... @@ -123,7 +123,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := api.NewWorkspaceApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "apiIdValue") +id := api.NewWorkspaceApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "apiId") payload := api.ApiCreateOrUpdateParameter{ // ... @@ -140,7 +140,7 @@ if err := client.WorkspaceApiCreateOrUpdateThenPoll(ctx, id, payload, api.Defaul ```go ctx := context.TODO() -id := api.NewWorkspaceApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "apiIdValue") +id := api.NewWorkspaceApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "apiId") read, err := client.WorkspaceApiDelete(ctx, id, api.DefaultWorkspaceApiDeleteOperationOptions()) if err != nil { @@ -156,7 +156,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := api.NewWorkspaceApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "apiIdValue") +id := api.NewWorkspaceApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "apiId") read, err := client.WorkspaceApiGet(ctx, id) if err != nil { @@ -172,7 +172,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := api.NewWorkspaceApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "apiIdValue") +id := api.NewWorkspaceApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "apiId") read, err := client.WorkspaceApiGetEntityTag(ctx, id) if err != nil { @@ -188,7 +188,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := api.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue") +id := api.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId") // alternatively `client.WorkspaceApiListByService(ctx, id, api.DefaultWorkspaceApiListByServiceOperationOptions())` can be used to do batched pagination items, err := client.WorkspaceApiListByServiceComplete(ctx, id, api.DefaultWorkspaceApiListByServiceOperationOptions()) @@ -205,7 +205,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := api.NewWorkspaceApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "apiIdValue") +id := api.NewWorkspaceApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "apiId") payload := api.ApiUpdateContract{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/api/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/api/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/api/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/api/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/id_api.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/api/id_api.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/id_api.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/api/id_api.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/id_service.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/api/id_service.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/id_service.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/api/id_service.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/id_workspace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/api/id_workspace.go similarity index 94% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/id_workspace.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/api/id_workspace.go index 33d92e28640a..bd2ce1db4c56 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/id_workspace.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/api/id_workspace.go @@ -44,7 +44,7 @@ func ParseWorkspaceID(input string) (*WorkspaceId, error) { } id := WorkspaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseWorkspaceIDInsensitively(input string) (*WorkspaceId, error) { } id := WorkspaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id WorkspaceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), - resourceids.UserSpecifiedSegment("workspaceId", "workspaceIdValue"), + resourceids.UserSpecifiedSegment("workspaceId", "workspaceId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/id_workspaceapi.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/api/id_workspaceapi.go similarity index 94% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/id_workspaceapi.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/api/id_workspaceapi.go index 5d2d28b9cafe..8829e3667829 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/id_workspaceapi.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/api/id_workspaceapi.go @@ -46,7 +46,7 @@ func ParseWorkspaceApiID(input string) (*WorkspaceApiId, error) { } id := WorkspaceApiId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseWorkspaceApiIDInsensitively(input string) (*WorkspaceApiId, error) { } id := WorkspaceApiId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id WorkspaceApiId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), - resourceids.UserSpecifiedSegment("workspaceId", "workspaceIdValue"), + resourceids.UserSpecifiedSegment("workspaceId", "workspaceId"), resourceids.StaticSegment("staticApis", "apis", "apis"), - resourceids.UserSpecifiedSegment("apiId", "apiIdValue"), + resourceids.UserSpecifiedSegment("apiId", "apiId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/api/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/api/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/api/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/api/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/api/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/api/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/method_getentitytag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/api/method_getentitytag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/method_getentitytag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/api/method_getentitytag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/method_listbyservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/api/method_listbyservice.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/method_listbyservice.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/api/method_listbyservice.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/api/method_update.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/method_update.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/api/method_update.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/method_workspaceapicreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/api/method_workspaceapicreateorupdate.go similarity index 99% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/method_workspaceapicreateorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/api/method_workspaceapicreateorupdate.go index c7a255c688a9..0af4458649ea 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/method_workspaceapicreateorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/api/method_workspaceapicreateorupdate.go @@ -39,6 +39,7 @@ func (o WorkspaceApiCreateOrUpdateOperationOptions) ToHeaders() *client.Headers func (o WorkspaceApiCreateOrUpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/method_workspaceapidelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/api/method_workspaceapidelete.go similarity index 99% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/method_workspaceapidelete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/api/method_workspaceapidelete.go index 443935452090..719631183af8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/method_workspaceapidelete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/api/method_workspaceapidelete.go @@ -36,6 +36,7 @@ func (o WorkspaceApiDeleteOperationOptions) ToHeaders() *client.Headers { func (o WorkspaceApiDeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/method_workspaceapiget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/api/method_workspaceapiget.go similarity index 99% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/method_workspaceapiget.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/api/method_workspaceapiget.go index 220b742d573f..23fa96a38271 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/method_workspaceapiget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/api/method_workspaceapiget.go @@ -45,7 +45,6 @@ func (c ApiClient) WorkspaceApiGet(ctx context.Context, id WorkspaceApiId) (resu var model ApiContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/method_workspaceapigetentitytag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/api/method_workspaceapigetentitytag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/method_workspaceapigetentitytag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/api/method_workspaceapigetentitytag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/method_workspaceapilistbyservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/api/method_workspaceapilistbyservice.go similarity index 99% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/method_workspaceapilistbyservice.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/api/method_workspaceapilistbyservice.go index aeed0e700771..59509cef86c4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/method_workspaceapilistbyservice.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/api/method_workspaceapilistbyservice.go @@ -43,6 +43,7 @@ func (o WorkspaceApiListByServiceOperationOptions) ToHeaders() *client.Headers { func (o WorkspaceApiListByServiceOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/method_workspaceapiupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/api/method_workspaceapiupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/method_workspaceapiupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/api/method_workspaceapiupdate.go index 25f72466ee31..7bcd19acc0f5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/method_workspaceapiupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/api/method_workspaceapiupdate.go @@ -36,6 +36,7 @@ func (o WorkspaceApiUpdateOperationOptions) ToHeaders() *client.Headers { func (o WorkspaceApiUpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -78,7 +79,6 @@ func (c ApiClient) WorkspaceApiUpdate(ctx context.Context, id WorkspaceApiId, in var model ApiContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/model_apicontactinformation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/api/model_apicontactinformation.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/model_apicontactinformation.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/api/model_apicontactinformation.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/model_apicontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/api/model_apicontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/model_apicontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/api/model_apicontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/model_apicontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/api/model_apicontractproperties.go similarity index 97% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/model_apicontractproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/api/model_apicontractproperties.go index 5b7c69748792..33aa22a0fa85 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/model_apicontractproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/api/model_apicontractproperties.go @@ -20,7 +20,7 @@ type ApiContractProperties struct { Path string `json:"path"` Protocols *[]Protocol `json:"protocols,omitempty"` ProvisioningState *string `json:"provisioningState,omitempty"` - ServiceUrl *string `json:"serviceUrl,omitempty"` + ServiceURL *string `json:"serviceUrl,omitempty"` SourceApiId *string `json:"sourceApiId,omitempty"` SubscriptionKeyParameterNames *SubscriptionKeyParameterNamesContract `json:"subscriptionKeyParameterNames,omitempty"` SubscriptionRequired *bool `json:"subscriptionRequired,omitempty"` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/model_apicontractupdateproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/api/model_apicontractupdateproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/model_apicontractupdateproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/api/model_apicontractupdateproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/model_apicreateorupdateparameter.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/api/model_apicreateorupdateparameter.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/model_apicreateorupdateparameter.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/api/model_apicreateorupdateparameter.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/model_apicreateorupdateproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/api/model_apicreateorupdateproperties.go similarity index 97% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/model_apicreateorupdateproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/api/model_apicreateorupdateproperties.go index f60ea28ab5fa..73e73b0b7c87 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/model_apicreateorupdateproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/api/model_apicreateorupdateproperties.go @@ -22,7 +22,7 @@ type ApiCreateOrUpdateProperties struct { Path string `json:"path"` Protocols *[]Protocol `json:"protocols,omitempty"` ProvisioningState *string `json:"provisioningState,omitempty"` - ServiceUrl *string `json:"serviceUrl,omitempty"` + ServiceURL *string `json:"serviceUrl,omitempty"` SourceApiId *string `json:"sourceApiId,omitempty"` SubscriptionKeyParameterNames *SubscriptionKeyParameterNamesContract `json:"subscriptionKeyParameterNames,omitempty"` SubscriptionRequired *bool `json:"subscriptionRequired,omitempty"` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/model_apicreateorupdatepropertieswsdlselector.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/api/model_apicreateorupdatepropertieswsdlselector.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/model_apicreateorupdatepropertieswsdlselector.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/api/model_apicreateorupdatepropertieswsdlselector.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/model_apilicenseinformation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/api/model_apilicenseinformation.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/model_apilicenseinformation.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/api/model_apilicenseinformation.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/model_apiupdatecontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/api/model_apiupdatecontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/model_apiupdatecontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/api/model_apiupdatecontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/model_apiversionsetcontractdetails.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/api/model_apiversionsetcontractdetails.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/model_apiversionsetcontractdetails.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/api/model_apiversionsetcontractdetails.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/model_authenticationsettingscontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/api/model_authenticationsettingscontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/model_authenticationsettingscontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/api/model_authenticationsettingscontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/model_oauth2authenticationsettingscontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/api/model_oauth2authenticationsettingscontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/model_oauth2authenticationsettingscontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/api/model_oauth2authenticationsettingscontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/model_openidauthenticationsettingscontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/api/model_openidauthenticationsettingscontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/model_openidauthenticationsettingscontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/api/model_openidauthenticationsettingscontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/model_subscriptionkeyparameternamescontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/api/model_subscriptionkeyparameternamescontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/model_subscriptionkeyparameternamescontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/api/model_subscriptionkeyparameternamescontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/api/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/api/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/api/version.go similarity index 67% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/api/version.go index fbc2df999d5c..0bef534e0366 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/api/version.go @@ -3,8 +3,8 @@ package api // 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-05-01-preview" +const defaultApiVersion = "2024-05-01" func userAgent() string { - return "hashicorp/go-azure-sdk/api/2022-08-01" + return "hashicorp/go-azure-sdk/api/2024-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apidiagnostic/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apidiagnostic/README.md new file mode 100644 index 000000000000..724c1a8bbac0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apidiagnostic/README.md @@ -0,0 +1,234 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apidiagnostic` Documentation + +The `apidiagnostic` SDK allows for interaction with Azure Resource Manager `apimanagement` (API Version `2024-05-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/apimanagement/2024-05-01/apidiagnostic" +``` + + +### Client Initialization + +```go +client := apidiagnostic.NewApiDiagnosticClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `ApiDiagnosticClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := apidiagnostic.NewApiDiagnosticID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apiId", "diagnosticId") + +payload := apidiagnostic.DiagnosticContract{ + // ... +} + + +read, err := client.CreateOrUpdate(ctx, id, payload, apidiagnostic.DefaultCreateOrUpdateOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ApiDiagnosticClient.Delete` + +```go +ctx := context.TODO() +id := apidiagnostic.NewApiDiagnosticID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apiId", "diagnosticId") + +read, err := client.Delete(ctx, id, apidiagnostic.DefaultDeleteOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ApiDiagnosticClient.Get` + +```go +ctx := context.TODO() +id := apidiagnostic.NewApiDiagnosticID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apiId", "diagnosticId") + +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: `ApiDiagnosticClient.GetEntityTag` + +```go +ctx := context.TODO() +id := apidiagnostic.NewApiDiagnosticID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apiId", "diagnosticId") + +read, err := client.GetEntityTag(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ApiDiagnosticClient.ListByService` + +```go +ctx := context.TODO() +id := apidiagnostic.NewApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apiId") + +// alternatively `client.ListByService(ctx, id, apidiagnostic.DefaultListByServiceOperationOptions())` can be used to do batched pagination +items, err := client.ListByServiceComplete(ctx, id, apidiagnostic.DefaultListByServiceOperationOptions()) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `ApiDiagnosticClient.Update` + +```go +ctx := context.TODO() +id := apidiagnostic.NewApiDiagnosticID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apiId", "diagnosticId") + +payload := apidiagnostic.DiagnosticContract{ + // ... +} + + +read, err := client.Update(ctx, id, payload, apidiagnostic.DefaultUpdateOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ApiDiagnosticClient.WorkspaceApiDiagnosticCreateOrUpdate` + +```go +ctx := context.TODO() +id := apidiagnostic.NewWorkspaceApiDiagnosticID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "apiId", "diagnosticId") + +payload := apidiagnostic.DiagnosticContract{ + // ... +} + + +read, err := client.WorkspaceApiDiagnosticCreateOrUpdate(ctx, id, payload, apidiagnostic.DefaultWorkspaceApiDiagnosticCreateOrUpdateOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ApiDiagnosticClient.WorkspaceApiDiagnosticDelete` + +```go +ctx := context.TODO() +id := apidiagnostic.NewWorkspaceApiDiagnosticID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "apiId", "diagnosticId") + +read, err := client.WorkspaceApiDiagnosticDelete(ctx, id, apidiagnostic.DefaultWorkspaceApiDiagnosticDeleteOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ApiDiagnosticClient.WorkspaceApiDiagnosticGet` + +```go +ctx := context.TODO() +id := apidiagnostic.NewWorkspaceApiDiagnosticID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "apiId", "diagnosticId") + +read, err := client.WorkspaceApiDiagnosticGet(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ApiDiagnosticClient.WorkspaceApiDiagnosticGetEntityTag` + +```go +ctx := context.TODO() +id := apidiagnostic.NewWorkspaceApiDiagnosticID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "apiId", "diagnosticId") + +read, err := client.WorkspaceApiDiagnosticGetEntityTag(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ApiDiagnosticClient.WorkspaceApiDiagnosticListByWorkspace` + +```go +ctx := context.TODO() +id := apidiagnostic.NewWorkspaceApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "apiId") + +// alternatively `client.WorkspaceApiDiagnosticListByWorkspace(ctx, id, apidiagnostic.DefaultWorkspaceApiDiagnosticListByWorkspaceOperationOptions())` can be used to do batched pagination +items, err := client.WorkspaceApiDiagnosticListByWorkspaceComplete(ctx, id, apidiagnostic.DefaultWorkspaceApiDiagnosticListByWorkspaceOperationOptions()) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `ApiDiagnosticClient.WorkspaceApiDiagnosticUpdate` + +```go +ctx := context.TODO() +id := apidiagnostic.NewWorkspaceApiDiagnosticID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "apiId", "diagnosticId") + +payload := apidiagnostic.DiagnosticUpdateContract{ + // ... +} + + +read, err := client.WorkspaceApiDiagnosticUpdate(ctx, id, payload, apidiagnostic.DefaultWorkspaceApiDiagnosticUpdateOperationOptions()) +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/apimanagement/2023-05-01-preview/apidiagnostic/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apidiagnostic/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apidiagnostic/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apidiagnostic/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apidiagnostic/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic/id_api.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apidiagnostic/id_api.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic/id_api.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apidiagnostic/id_api.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic/id_apidiagnostic.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apidiagnostic/id_apidiagnostic.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic/id_apidiagnostic.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apidiagnostic/id_apidiagnostic.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apidiagnostic/id_workspaceapi.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apidiagnostic/id_workspaceapi.go new file mode 100644 index 000000000000..f7206a2199fe --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apidiagnostic/id_workspaceapi.go @@ -0,0 +1,148 @@ +package apidiagnostic + +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(&WorkspaceApiId{}) +} + +var _ resourceids.ResourceId = &WorkspaceApiId{} + +// WorkspaceApiId is a struct representing the Resource ID for a Workspace Api +type WorkspaceApiId struct { + SubscriptionId string + ResourceGroupName string + ServiceName string + WorkspaceId string + ApiId string +} + +// NewWorkspaceApiID returns a new WorkspaceApiId struct +func NewWorkspaceApiID(subscriptionId string, resourceGroupName string, serviceName string, workspaceId string, apiId string) WorkspaceApiId { + return WorkspaceApiId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + ServiceName: serviceName, + WorkspaceId: workspaceId, + ApiId: apiId, + } +} + +// ParseWorkspaceApiID parses 'input' into a WorkspaceApiId +func ParseWorkspaceApiID(input string) (*WorkspaceApiId, error) { + parser := resourceids.NewParserFromResourceIdType(&WorkspaceApiId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := WorkspaceApiId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseWorkspaceApiIDInsensitively parses 'input' case-insensitively into a WorkspaceApiId +// note: this method should only be used for API response data and not user input +func ParseWorkspaceApiIDInsensitively(input string) (*WorkspaceApiId, error) { + parser := resourceids.NewParserFromResourceIdType(&WorkspaceApiId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := WorkspaceApiId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *WorkspaceApiId) 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.ServiceName, ok = input.Parsed["serviceName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "serviceName", input) + } + + if id.WorkspaceId, ok = input.Parsed["workspaceId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "workspaceId", input) + } + + if id.ApiId, ok = input.Parsed["apiId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "apiId", input) + } + + return nil +} + +// ValidateWorkspaceApiID checks that 'input' can be parsed as a Workspace Api ID +func ValidateWorkspaceApiID(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 := ParseWorkspaceApiID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Workspace Api ID +func (id WorkspaceApiId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.ApiManagement/service/%s/workspaces/%s/apis/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.ServiceName, id.WorkspaceId, id.ApiId) +} + +// Segments returns a slice of Resource ID Segments which comprise this Workspace Api ID +func (id WorkspaceApiId) 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("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), + resourceids.StaticSegment("staticService", "service", "service"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), + resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), + resourceids.UserSpecifiedSegment("workspaceId", "workspaceId"), + resourceids.StaticSegment("staticApis", "apis", "apis"), + resourceids.UserSpecifiedSegment("apiId", "apiId"), + } +} + +// String returns a human-readable description of this Workspace Api ID +func (id WorkspaceApiId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Service Name: %q", id.ServiceName), + fmt.Sprintf("Workspace: %q", id.WorkspaceId), + fmt.Sprintf("Api: %q", id.ApiId), + } + return fmt.Sprintf("Workspace Api (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apidiagnostic/id_workspaceapidiagnostic.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apidiagnostic/id_workspaceapidiagnostic.go new file mode 100644 index 000000000000..06a12474a91d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apidiagnostic/id_workspaceapidiagnostic.go @@ -0,0 +1,157 @@ +package apidiagnostic + +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(&WorkspaceApiDiagnosticId{}) +} + +var _ resourceids.ResourceId = &WorkspaceApiDiagnosticId{} + +// WorkspaceApiDiagnosticId is a struct representing the Resource ID for a Workspace Api Diagnostic +type WorkspaceApiDiagnosticId struct { + SubscriptionId string + ResourceGroupName string + ServiceName string + WorkspaceId string + ApiId string + DiagnosticId string +} + +// NewWorkspaceApiDiagnosticID returns a new WorkspaceApiDiagnosticId struct +func NewWorkspaceApiDiagnosticID(subscriptionId string, resourceGroupName string, serviceName string, workspaceId string, apiId string, diagnosticId string) WorkspaceApiDiagnosticId { + return WorkspaceApiDiagnosticId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + ServiceName: serviceName, + WorkspaceId: workspaceId, + ApiId: apiId, + DiagnosticId: diagnosticId, + } +} + +// ParseWorkspaceApiDiagnosticID parses 'input' into a WorkspaceApiDiagnosticId +func ParseWorkspaceApiDiagnosticID(input string) (*WorkspaceApiDiagnosticId, error) { + parser := resourceids.NewParserFromResourceIdType(&WorkspaceApiDiagnosticId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := WorkspaceApiDiagnosticId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseWorkspaceApiDiagnosticIDInsensitively parses 'input' case-insensitively into a WorkspaceApiDiagnosticId +// note: this method should only be used for API response data and not user input +func ParseWorkspaceApiDiagnosticIDInsensitively(input string) (*WorkspaceApiDiagnosticId, error) { + parser := resourceids.NewParserFromResourceIdType(&WorkspaceApiDiagnosticId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := WorkspaceApiDiagnosticId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *WorkspaceApiDiagnosticId) 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.ServiceName, ok = input.Parsed["serviceName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "serviceName", input) + } + + if id.WorkspaceId, ok = input.Parsed["workspaceId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "workspaceId", input) + } + + if id.ApiId, ok = input.Parsed["apiId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "apiId", input) + } + + if id.DiagnosticId, ok = input.Parsed["diagnosticId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "diagnosticId", input) + } + + return nil +} + +// ValidateWorkspaceApiDiagnosticID checks that 'input' can be parsed as a Workspace Api Diagnostic ID +func ValidateWorkspaceApiDiagnosticID(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 := ParseWorkspaceApiDiagnosticID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Workspace Api Diagnostic ID +func (id WorkspaceApiDiagnosticId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.ApiManagement/service/%s/workspaces/%s/apis/%s/diagnostics/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.ServiceName, id.WorkspaceId, id.ApiId, id.DiagnosticId) +} + +// Segments returns a slice of Resource ID Segments which comprise this Workspace Api Diagnostic ID +func (id WorkspaceApiDiagnosticId) 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("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), + resourceids.StaticSegment("staticService", "service", "service"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), + resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), + resourceids.UserSpecifiedSegment("workspaceId", "workspaceId"), + resourceids.StaticSegment("staticApis", "apis", "apis"), + resourceids.UserSpecifiedSegment("apiId", "apiId"), + resourceids.StaticSegment("staticDiagnostics", "diagnostics", "diagnostics"), + resourceids.UserSpecifiedSegment("diagnosticId", "diagnosticId"), + } +} + +// String returns a human-readable description of this Workspace Api Diagnostic ID +func (id WorkspaceApiDiagnosticId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Service Name: %q", id.ServiceName), + fmt.Sprintf("Workspace: %q", id.WorkspaceId), + fmt.Sprintf("Api: %q", id.ApiId), + fmt.Sprintf("Diagnostic: %q", id.DiagnosticId), + } + return fmt.Sprintf("Workspace Api Diagnostic (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apidiagnostic/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apidiagnostic/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apidiagnostic/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apidiagnostic/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apidiagnostic/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apidiagnostic/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic/method_getentitytag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apidiagnostic/method_getentitytag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic/method_getentitytag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apidiagnostic/method_getentitytag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic/method_listbyservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apidiagnostic/method_listbyservice.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic/method_listbyservice.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apidiagnostic/method_listbyservice.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apidiagnostic/method_update.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic/method_update.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apidiagnostic/method_update.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apidiagnostic/method_workspaceapidiagnosticcreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apidiagnostic/method_workspaceapidiagnosticcreateorupdate.go new file mode 100644 index 000000000000..a7ce26b837a7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apidiagnostic/method_workspaceapidiagnosticcreateorupdate.go @@ -0,0 +1,88 @@ +package apidiagnostic + +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 WorkspaceApiDiagnosticCreateOrUpdateOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *DiagnosticContract +} + +type WorkspaceApiDiagnosticCreateOrUpdateOperationOptions struct { + IfMatch *string +} + +func DefaultWorkspaceApiDiagnosticCreateOrUpdateOperationOptions() WorkspaceApiDiagnosticCreateOrUpdateOperationOptions { + return WorkspaceApiDiagnosticCreateOrUpdateOperationOptions{} +} + +func (o WorkspaceApiDiagnosticCreateOrUpdateOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + if o.IfMatch != nil { + out.Append("If-Match", fmt.Sprintf("%v", *o.IfMatch)) + } + return &out +} + +func (o WorkspaceApiDiagnosticCreateOrUpdateOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o WorkspaceApiDiagnosticCreateOrUpdateOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + + return &out +} + +// WorkspaceApiDiagnosticCreateOrUpdate ... +func (c ApiDiagnosticClient) WorkspaceApiDiagnosticCreateOrUpdate(ctx context.Context, id WorkspaceApiDiagnosticId, input DiagnosticContract, options WorkspaceApiDiagnosticCreateOrUpdateOperationOptions) (result WorkspaceApiDiagnosticCreateOrUpdateOperationResponse, 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 DiagnosticContract + 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/apimanagement/2024-05-01/apidiagnostic/method_workspaceapidiagnosticdelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apidiagnostic/method_workspaceapidiagnosticdelete.go new file mode 100644 index 000000000000..2dd0b82662ba --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apidiagnostic/method_workspaceapidiagnosticdelete.go @@ -0,0 +1,77 @@ +package apidiagnostic + +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 WorkspaceApiDiagnosticDeleteOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +type WorkspaceApiDiagnosticDeleteOperationOptions struct { + IfMatch *string +} + +func DefaultWorkspaceApiDiagnosticDeleteOperationOptions() WorkspaceApiDiagnosticDeleteOperationOptions { + return WorkspaceApiDiagnosticDeleteOperationOptions{} +} + +func (o WorkspaceApiDiagnosticDeleteOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + if o.IfMatch != nil { + out.Append("If-Match", fmt.Sprintf("%v", *o.IfMatch)) + } + return &out +} + +func (o WorkspaceApiDiagnosticDeleteOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o WorkspaceApiDiagnosticDeleteOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + + return &out +} + +// WorkspaceApiDiagnosticDelete ... +func (c ApiDiagnosticClient) WorkspaceApiDiagnosticDelete(ctx context.Context, id WorkspaceApiDiagnosticId, options WorkspaceApiDiagnosticDeleteOperationOptions) (result WorkspaceApiDiagnosticDeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + 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 + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apidiagnostic/method_workspaceapidiagnosticget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apidiagnostic/method_workspaceapidiagnosticget.go new file mode 100644 index 000000000000..7d51f2ff87b4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apidiagnostic/method_workspaceapidiagnosticget.go @@ -0,0 +1,53 @@ +package apidiagnostic + +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 WorkspaceApiDiagnosticGetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *DiagnosticContract +} + +// WorkspaceApiDiagnosticGet ... +func (c ApiDiagnosticClient) WorkspaceApiDiagnosticGet(ctx context.Context, id WorkspaceApiDiagnosticId) (result WorkspaceApiDiagnosticGetOperationResponse, 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 DiagnosticContract + 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/apimanagement/2024-05-01/apidiagnostic/method_workspaceapidiagnosticgetentitytag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apidiagnostic/method_workspaceapidiagnosticgetentitytag.go new file mode 100644 index 000000000000..c5e6c126d637 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apidiagnostic/method_workspaceapidiagnosticgetentitytag.go @@ -0,0 +1,46 @@ +package apidiagnostic + +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 WorkspaceApiDiagnosticGetEntityTagOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// WorkspaceApiDiagnosticGetEntityTag ... +func (c ApiDiagnosticClient) WorkspaceApiDiagnosticGetEntityTag(ctx context.Context, id WorkspaceApiDiagnosticId) (result WorkspaceApiDiagnosticGetEntityTagOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodHead, + 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/apimanagement/2024-05-01/apidiagnostic/method_workspaceapidiagnosticlistbyworkspace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apidiagnostic/method_workspaceapidiagnosticlistbyworkspace.go new file mode 100644 index 000000000000..4f2fac95e891 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apidiagnostic/method_workspaceapidiagnosticlistbyworkspace.go @@ -0,0 +1,142 @@ +package apidiagnostic + +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 WorkspaceApiDiagnosticListByWorkspaceOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]DiagnosticContract +} + +type WorkspaceApiDiagnosticListByWorkspaceCompleteResult struct { + LatestHttpResponse *http.Response + Items []DiagnosticContract +} + +type WorkspaceApiDiagnosticListByWorkspaceOperationOptions struct { + Filter *string + Skip *int64 + Top *int64 +} + +func DefaultWorkspaceApiDiagnosticListByWorkspaceOperationOptions() WorkspaceApiDiagnosticListByWorkspaceOperationOptions { + return WorkspaceApiDiagnosticListByWorkspaceOperationOptions{} +} + +func (o WorkspaceApiDiagnosticListByWorkspaceOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o WorkspaceApiDiagnosticListByWorkspaceOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o WorkspaceApiDiagnosticListByWorkspaceOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Filter != nil { + out.Append("$filter", fmt.Sprintf("%v", *o.Filter)) + } + if o.Skip != nil { + out.Append("$skip", fmt.Sprintf("%v", *o.Skip)) + } + if o.Top != nil { + out.Append("$top", fmt.Sprintf("%v", *o.Top)) + } + return &out +} + +type WorkspaceApiDiagnosticListByWorkspaceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkspaceApiDiagnosticListByWorkspaceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// WorkspaceApiDiagnosticListByWorkspace ... +func (c ApiDiagnosticClient) WorkspaceApiDiagnosticListByWorkspace(ctx context.Context, id WorkspaceApiId, options WorkspaceApiDiagnosticListByWorkspaceOperationOptions) (result WorkspaceApiDiagnosticListByWorkspaceOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + OptionsObject: options, + Pager: &WorkspaceApiDiagnosticListByWorkspaceCustomPager{}, + Path: fmt.Sprintf("%s/diagnostics", 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 *[]DiagnosticContract `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// WorkspaceApiDiagnosticListByWorkspaceComplete retrieves all the results into a single object +func (c ApiDiagnosticClient) WorkspaceApiDiagnosticListByWorkspaceComplete(ctx context.Context, id WorkspaceApiId, options WorkspaceApiDiagnosticListByWorkspaceOperationOptions) (WorkspaceApiDiagnosticListByWorkspaceCompleteResult, error) { + return c.WorkspaceApiDiagnosticListByWorkspaceCompleteMatchingPredicate(ctx, id, options, DiagnosticContractOperationPredicate{}) +} + +// WorkspaceApiDiagnosticListByWorkspaceCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c ApiDiagnosticClient) WorkspaceApiDiagnosticListByWorkspaceCompleteMatchingPredicate(ctx context.Context, id WorkspaceApiId, options WorkspaceApiDiagnosticListByWorkspaceOperationOptions, predicate DiagnosticContractOperationPredicate) (result WorkspaceApiDiagnosticListByWorkspaceCompleteResult, err error) { + items := make([]DiagnosticContract, 0) + + resp, err := c.WorkspaceApiDiagnosticListByWorkspace(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 = WorkspaceApiDiagnosticListByWorkspaceCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apidiagnostic/method_workspaceapidiagnosticupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apidiagnostic/method_workspaceapidiagnosticupdate.go new file mode 100644 index 000000000000..a219cfaf37ee --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apidiagnostic/method_workspaceapidiagnosticupdate.go @@ -0,0 +1,87 @@ +package apidiagnostic + +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 WorkspaceApiDiagnosticUpdateOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *DiagnosticContract +} + +type WorkspaceApiDiagnosticUpdateOperationOptions struct { + IfMatch *string +} + +func DefaultWorkspaceApiDiagnosticUpdateOperationOptions() WorkspaceApiDiagnosticUpdateOperationOptions { + return WorkspaceApiDiagnosticUpdateOperationOptions{} +} + +func (o WorkspaceApiDiagnosticUpdateOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + if o.IfMatch != nil { + out.Append("If-Match", fmt.Sprintf("%v", *o.IfMatch)) + } + return &out +} + +func (o WorkspaceApiDiagnosticUpdateOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o WorkspaceApiDiagnosticUpdateOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + + return &out +} + +// WorkspaceApiDiagnosticUpdate ... +func (c ApiDiagnosticClient) WorkspaceApiDiagnosticUpdate(ctx context.Context, id WorkspaceApiDiagnosticId, input DiagnosticUpdateContract, options WorkspaceApiDiagnosticUpdateOperationOptions) (result WorkspaceApiDiagnosticUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPatch, + 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 DiagnosticContract + 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/apimanagement/2023-05-01-preview/apidiagnostic/model_bodydiagnosticsettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apidiagnostic/model_bodydiagnosticsettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic/model_bodydiagnosticsettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apidiagnostic/model_bodydiagnosticsettings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic/model_datamasking.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apidiagnostic/model_datamasking.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic/model_datamasking.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apidiagnostic/model_datamasking.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic/model_datamaskingentity.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apidiagnostic/model_datamaskingentity.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic/model_datamaskingentity.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apidiagnostic/model_datamaskingentity.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic/model_diagnosticcontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apidiagnostic/model_diagnosticcontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic/model_diagnosticcontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apidiagnostic/model_diagnosticcontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic/model_diagnosticcontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apidiagnostic/model_diagnosticcontractproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic/model_diagnosticcontractproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apidiagnostic/model_diagnosticcontractproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apidiagnostic/model_diagnosticcontractupdateproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apidiagnostic/model_diagnosticcontractupdateproperties.go new file mode 100644 index 000000000000..a0233c241e18 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apidiagnostic/model_diagnosticcontractupdateproperties.go @@ -0,0 +1,17 @@ +package apidiagnostic + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DiagnosticContractUpdateProperties struct { + AlwaysLog *AlwaysLog `json:"alwaysLog,omitempty"` + Backend *PipelineDiagnosticSettings `json:"backend,omitempty"` + Frontend *PipelineDiagnosticSettings `json:"frontend,omitempty"` + HTTPCorrelationProtocol *HTTPCorrelationProtocol `json:"httpCorrelationProtocol,omitempty"` + LogClientIP *bool `json:"logClientIp,omitempty"` + LoggerId *string `json:"loggerId,omitempty"` + Metrics *bool `json:"metrics,omitempty"` + OperationNameFormat *OperationNameFormat `json:"operationNameFormat,omitempty"` + Sampling *SamplingSettings `json:"sampling,omitempty"` + Verbosity *Verbosity `json:"verbosity,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apidiagnostic/model_diagnosticupdatecontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apidiagnostic/model_diagnosticupdatecontract.go new file mode 100644 index 000000000000..6de65998b31a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apidiagnostic/model_diagnosticupdatecontract.go @@ -0,0 +1,11 @@ +package apidiagnostic + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DiagnosticUpdateContract struct { + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *DiagnosticContractUpdateProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic/model_httpmessagediagnostic.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apidiagnostic/model_httpmessagediagnostic.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic/model_httpmessagediagnostic.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apidiagnostic/model_httpmessagediagnostic.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic/model_pipelinediagnosticsettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apidiagnostic/model_pipelinediagnosticsettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic/model_pipelinediagnosticsettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apidiagnostic/model_pipelinediagnosticsettings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic/model_samplingsettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apidiagnostic/model_samplingsettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic/model_samplingsettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apidiagnostic/model_samplingsettings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apidiagnostic/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apidiagnostic/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apidiagnostic/version.go similarity index 66% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apidiagnostic/version.go index 47010b18baad..24c17fe559d8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apidiagnostic/version.go @@ -3,8 +3,8 @@ package apidiagnostic // 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-05-01-preview" +const defaultApiVersion = "2024-05-01" func userAgent() string { - return "hashicorp/go-azure-sdk/apidiagnostic/2022-08-01" + return "hashicorp/go-azure-sdk/apidiagnostic/2024-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice/README.md similarity index 95% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice/README.md index da0a51c521ea..58af121f8ed9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice/README.md @@ -1,6 +1,7 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice` Documentation -The `apimanagementservice` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2023-05-01-preview`). +## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice` Documentation + +The `apimanagementservice` SDK allows for interaction with Azure Resource Manager `apimanagement` (API Version `2024-05-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). @@ -8,9 +9,10 @@ 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/apimanagement/2023-05-01-preview/apimanagementservice" +import "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice" ``` + ### Client Initialization ```go @@ -18,6 +20,7 @@ client := apimanagementservice.NewApiManagementServiceClientWithBaseURI("https:/ client.Client.Authorizer = authorizer ``` + ### Example Usage: `ApiManagementServiceClient.ApplyNetworkConfigurationUpdates` ```go @@ -34,6 +37,7 @@ if err := client.ApplyNetworkConfigurationUpdatesThenPoll(ctx, id, payload); err } ``` + ### Example Usage: `ApiManagementServiceClient.Backup` ```go @@ -50,6 +54,7 @@ if err := client.BackupThenPoll(ctx, id, payload); err != nil { } ``` + ### Example Usage: `ApiManagementServiceClient.CheckNameAvailability` ```go @@ -70,6 +75,7 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `ApiManagementServiceClient.CreateOrUpdate` ```go @@ -86,6 +92,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { } ``` + ### Example Usage: `ApiManagementServiceClient.Delete` ```go @@ -97,6 +104,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { } ``` + ### Example Usage: `ApiManagementServiceClient.Get` ```go @@ -112,6 +120,7 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `ApiManagementServiceClient.GetDomainOwnershipIdentifier` ```go @@ -127,6 +136,7 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `ApiManagementServiceClient.GetSsoToken` ```go @@ -142,6 +152,7 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `ApiManagementServiceClient.List` ```go @@ -158,6 +169,7 @@ for _, item := range items { } ``` + ### Example Usage: `ApiManagementServiceClient.ListByResourceGroup` ```go @@ -174,6 +186,7 @@ for _, item := range items { } ``` + ### Example Usage: `ApiManagementServiceClient.MigrateToStv2` ```go @@ -190,6 +203,7 @@ if err := client.MigrateToStv2ThenPoll(ctx, id, payload); err != nil { } ``` + ### Example Usage: `ApiManagementServiceClient.Restore` ```go @@ -206,6 +220,7 @@ if err := client.RestoreThenPoll(ctx, id, payload); err != nil { } ``` + ### Example Usage: `ApiManagementServiceClient.Update` ```go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/id_service.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice/id_service.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/id_service.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice/id_service.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/method_applynetworkconfigurationupdates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice/method_applynetworkconfigurationupdates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/method_applynetworkconfigurationupdates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice/method_applynetworkconfigurationupdates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/method_backup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice/method_backup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/method_backup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice/method_backup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/method_checknameavailability.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice/method_checknameavailability.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/method_checknameavailability.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice/method_checknameavailability.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/method_getdomainownershipidentifier.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice/method_getdomainownershipidentifier.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/method_getdomainownershipidentifier.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice/method_getdomainownershipidentifier.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/method_getssotoken.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice/method_getssotoken.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/method_getssotoken.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice/method_getssotoken.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice/method_listbyresourcegroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/method_listbyresourcegroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice/method_listbyresourcegroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/method_migratetostv2.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice/method_migratetostv2.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/method_migratetostv2.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice/method_migratetostv2.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/method_restore.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice/method_restore.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/method_restore.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice/method_restore.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice/method_update.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/method_update.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice/method_update.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/model_additionallocation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice/model_additionallocation.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/model_additionallocation.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice/model_additionallocation.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/model_apimanagementserviceapplynetworkconfigurationparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice/model_apimanagementserviceapplynetworkconfigurationparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/model_apimanagementserviceapplynetworkconfigurationparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice/model_apimanagementserviceapplynetworkconfigurationparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/model_apimanagementservicebackuprestoreparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice/model_apimanagementservicebackuprestoreparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/model_apimanagementservicebackuprestoreparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice/model_apimanagementservicebackuprestoreparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/model_apimanagementservicechecknameavailabilityparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice/model_apimanagementservicechecknameavailabilityparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/model_apimanagementservicechecknameavailabilityparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice/model_apimanagementservicechecknameavailabilityparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/model_apimanagementservicegetdomainownershipidentifierresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice/model_apimanagementservicegetdomainownershipidentifierresult.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/model_apimanagementservicegetdomainownershipidentifierresult.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice/model_apimanagementservicegetdomainownershipidentifierresult.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/model_apimanagementservicegetssotokenresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice/model_apimanagementservicegetssotokenresult.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/model_apimanagementservicegetssotokenresult.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice/model_apimanagementservicegetssotokenresult.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/model_apimanagementservicenameavailabilityresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice/model_apimanagementservicenameavailabilityresult.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/model_apimanagementservicenameavailabilityresult.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice/model_apimanagementservicenameavailabilityresult.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/model_apimanagementserviceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice/model_apimanagementserviceproperties.go similarity index 96% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/model_apimanagementserviceproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice/model_apimanagementserviceproperties.go index 26d01e7f0422..ef66688bf0f9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/model_apimanagementserviceproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice/model_apimanagementserviceproperties.go @@ -17,14 +17,14 @@ type ApiManagementServiceProperties struct { CreatedAtUtc *string `json:"createdAtUtc,omitempty"` CustomProperties *map[string]string `json:"customProperties,omitempty"` DeveloperPortalStatus *DeveloperPortalStatus `json:"developerPortalStatus,omitempty"` - DeveloperPortalUrl *string `json:"developerPortalUrl,omitempty"` + DeveloperPortalURL *string `json:"developerPortalUrl,omitempty"` DisableGateway *bool `json:"disableGateway,omitempty"` EnableClientCertificate *bool `json:"enableClientCertificate,omitempty"` GatewayRegionalURL *string `json:"gatewayRegionalUrl,omitempty"` GatewayURL *string `json:"gatewayUrl,omitempty"` HostnameConfigurations *[]HostnameConfiguration `json:"hostnameConfigurations,omitempty"` LegacyPortalStatus *LegacyPortalStatus `json:"legacyPortalStatus,omitempty"` - ManagementApiUrl *string `json:"managementApiUrl,omitempty"` + ManagementApiURL *string `json:"managementApiUrl,omitempty"` NatGatewayState *NatGatewayState `json:"natGatewayState,omitempty"` NotificationSenderEmail *string `json:"notificationSenderEmail,omitempty"` OutboundPublicIPAddresses *[]string `json:"outboundPublicIPAddresses,omitempty"` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/model_apimanagementserviceresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice/model_apimanagementserviceresource.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/model_apimanagementserviceresource.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice/model_apimanagementserviceresource.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/model_apimanagementserviceskuproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice/model_apimanagementserviceskuproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/model_apimanagementserviceskuproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice/model_apimanagementserviceskuproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/model_apimanagementserviceupdateparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice/model_apimanagementserviceupdateparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/model_apimanagementserviceupdateparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice/model_apimanagementserviceupdateparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/model_apimanagementserviceupdateproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice/model_apimanagementserviceupdateproperties.go similarity index 97% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/model_apimanagementserviceupdateproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice/model_apimanagementserviceupdateproperties.go index 6ee8389b95ff..8bd32692ae71 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/model_apimanagementserviceupdateproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice/model_apimanagementserviceupdateproperties.go @@ -17,14 +17,14 @@ type ApiManagementServiceUpdateProperties struct { CreatedAtUtc *string `json:"createdAtUtc,omitempty"` CustomProperties *map[string]string `json:"customProperties,omitempty"` DeveloperPortalStatus *DeveloperPortalStatus `json:"developerPortalStatus,omitempty"` - DeveloperPortalUrl *string `json:"developerPortalUrl,omitempty"` + DeveloperPortalURL *string `json:"developerPortalUrl,omitempty"` DisableGateway *bool `json:"disableGateway,omitempty"` EnableClientCertificate *bool `json:"enableClientCertificate,omitempty"` GatewayRegionalURL *string `json:"gatewayRegionalUrl,omitempty"` GatewayURL *string `json:"gatewayUrl,omitempty"` HostnameConfigurations *[]HostnameConfiguration `json:"hostnameConfigurations,omitempty"` LegacyPortalStatus *LegacyPortalStatus `json:"legacyPortalStatus,omitempty"` - ManagementApiUrl *string `json:"managementApiUrl,omitempty"` + ManagementApiURL *string `json:"managementApiUrl,omitempty"` NatGatewayState *NatGatewayState `json:"natGatewayState,omitempty"` NotificationSenderEmail *string `json:"notificationSenderEmail,omitempty"` OutboundPublicIPAddresses *[]string `json:"outboundPublicIPAddresses,omitempty"` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/model_apiversionconstraint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice/model_apiversionconstraint.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/model_apiversionconstraint.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice/model_apiversionconstraint.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/model_armidwrapper.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice/model_armidwrapper.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/model_armidwrapper.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice/model_armidwrapper.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/model_certificateconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice/model_certificateconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/model_certificateconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice/model_certificateconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/model_certificateinformation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice/model_certificateinformation.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/model_certificateinformation.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice/model_certificateinformation.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/model_configurationapi.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice/model_configurationapi.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/model_configurationapi.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice/model_configurationapi.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/model_hostnameconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice/model_hostnameconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/model_hostnameconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice/model_hostnameconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/model_migratetostv2contract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice/model_migratetostv2contract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/model_migratetostv2contract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice/model_migratetostv2contract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/model_privateendpointconnectionwrapperproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice/model_privateendpointconnectionwrapperproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/model_privateendpointconnectionwrapperproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice/model_privateendpointconnectionwrapperproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/model_privatelinkserviceconnectionstate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice/model_privatelinkserviceconnectionstate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/model_privatelinkserviceconnectionstate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice/model_privatelinkserviceconnectionstate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/model_remoteprivateendpointconnectionwrapper.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice/model_remoteprivateendpointconnectionwrapper.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/model_remoteprivateendpointconnectionwrapper.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice/model_remoteprivateendpointconnectionwrapper.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/model_virtualnetworkconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice/model_virtualnetworkconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/model_virtualnetworkconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice/model_virtualnetworkconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice/version.go similarity index 66% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice/version.go index f0ede8515a17..2a8a76859fd0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice/version.go @@ -3,8 +3,8 @@ package apimanagementservice // 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-05-01-preview" +const defaultApiVersion = "2024-05-01" func userAgent() string { - return "hashicorp/go-azure-sdk/apimanagementservice/2022-08-01" + return "hashicorp/go-azure-sdk/apimanagementservice/2024-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperation/README.md similarity index 80% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperation/README.md index 43af217d2039..d398aeda6147 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperation/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperation` Documentation -The `apioperation` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2023-05-01-preview`). +The `apioperation` SDK allows for interaction with Azure Resource Manager `apimanagement` (API Version `2024-05-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/apimanagement/2023-05-01-preview/apioperation" +import "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperation" ``` @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := apioperation.NewOperationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue", "operationIdValue") +id := apioperation.NewOperationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apiId", "operationId") payload := apioperation.OperationContract{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := apioperation.NewOperationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue", "operationIdValue") +id := apioperation.NewOperationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apiId", "operationId") read, err := client.Delete(ctx, id, apioperation.DefaultDeleteOperationOptions()) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := apioperation.NewOperationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue", "operationIdValue") +id := apioperation.NewOperationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apiId", "operationId") read, err := client.Get(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := apioperation.NewOperationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue", "operationIdValue") +id := apioperation.NewOperationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apiId", "operationId") read, err := client.GetEntityTag(ctx, id) if err != nil { @@ -93,7 +93,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := apioperation.NewApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue") +id := apioperation.NewApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apiId") // alternatively `client.ListByApi(ctx, id, apioperation.DefaultListByApiOperationOptions())` can be used to do batched pagination items, err := client.ListByApiComplete(ctx, id, apioperation.DefaultListByApiOperationOptions()) @@ -110,7 +110,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := apioperation.NewOperationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue", "operationIdValue") +id := apioperation.NewOperationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apiId", "operationId") payload := apioperation.OperationUpdateContract{ // ... @@ -131,7 +131,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := apioperation.NewApiOperationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "apiIdValue", "operationIdValue") +id := apioperation.NewApiOperationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "apiId", "operationId") payload := apioperation.OperationContract{ // ... @@ -152,7 +152,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := apioperation.NewApiOperationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "apiIdValue", "operationIdValue") +id := apioperation.NewApiOperationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "apiId", "operationId") read, err := client.WorkspaceApiOperationDelete(ctx, id, apioperation.DefaultWorkspaceApiOperationDeleteOperationOptions()) if err != nil { @@ -168,7 +168,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := apioperation.NewApiOperationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "apiIdValue", "operationIdValue") +id := apioperation.NewApiOperationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "apiId", "operationId") read, err := client.WorkspaceApiOperationGet(ctx, id) if err != nil { @@ -184,7 +184,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := apioperation.NewApiOperationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "apiIdValue", "operationIdValue") +id := apioperation.NewApiOperationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "apiId", "operationId") read, err := client.WorkspaceApiOperationGetEntityTag(ctx, id) if err != nil { @@ -200,7 +200,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := apioperation.NewWorkspaceApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "apiIdValue") +id := apioperation.NewWorkspaceApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "apiId") // alternatively `client.WorkspaceApiOperationListByApi(ctx, id, apioperation.DefaultWorkspaceApiOperationListByApiOperationOptions())` can be used to do batched pagination items, err := client.WorkspaceApiOperationListByApiComplete(ctx, id, apioperation.DefaultWorkspaceApiOperationListByApiOperationOptions()) @@ -217,7 +217,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := apioperation.NewApiOperationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "apiIdValue", "operationIdValue") +id := apioperation.NewApiOperationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "apiId", "operationId") payload := apioperation.OperationUpdateContract{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperation/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperation/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/id_api.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperation/id_api.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/id_api.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperation/id_api.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/id_apioperation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperation/id_apioperation.go similarity index 93% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/id_apioperation.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperation/id_apioperation.go index 57cefcbf9203..121972c0ce19 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/id_apioperation.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperation/id_apioperation.go @@ -48,7 +48,7 @@ func ParseApiOperationID(input string) (*ApiOperationId, error) { } id := ApiOperationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -65,7 +65,7 @@ func ParseApiOperationIDInsensitively(input string) (*ApiOperationId, error) { } id := ApiOperationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -133,13 +133,13 @@ func (id ApiOperationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), - resourceids.UserSpecifiedSegment("workspaceId", "workspaceIdValue"), + resourceids.UserSpecifiedSegment("workspaceId", "workspaceId"), resourceids.StaticSegment("staticApis", "apis", "apis"), - resourceids.UserSpecifiedSegment("apiId", "apiIdValue"), + resourceids.UserSpecifiedSegment("apiId", "apiId"), resourceids.StaticSegment("staticOperations", "operations", "operations"), - resourceids.UserSpecifiedSegment("operationId", "operationIdValue"), + resourceids.UserSpecifiedSegment("operationId", "operationId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/id_operation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperation/id_operation.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/id_operation.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperation/id_operation.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/id_workspaceapi.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperation/id_workspaceapi.go similarity index 94% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/id_workspaceapi.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperation/id_workspaceapi.go index 15a2ebfc5ee9..1dfafe7cda21 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/id_workspaceapi.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperation/id_workspaceapi.go @@ -46,7 +46,7 @@ func ParseWorkspaceApiID(input string) (*WorkspaceApiId, error) { } id := WorkspaceApiId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseWorkspaceApiIDInsensitively(input string) (*WorkspaceApiId, error) { } id := WorkspaceApiId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id WorkspaceApiId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), - resourceids.UserSpecifiedSegment("workspaceId", "workspaceIdValue"), + resourceids.UserSpecifiedSegment("workspaceId", "workspaceId"), resourceids.StaticSegment("staticApis", "apis", "apis"), - resourceids.UserSpecifiedSegment("apiId", "apiIdValue"), + resourceids.UserSpecifiedSegment("apiId", "apiId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperation/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperation/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperation/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperation/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperation/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperation/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/method_getentitytag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperation/method_getentitytag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/method_getentitytag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperation/method_getentitytag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/method_listbyapi.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperation/method_listbyapi.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/method_listbyapi.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperation/method_listbyapi.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperation/method_update.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/method_update.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperation/method_update.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/method_workspaceapioperationcreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperation/method_workspaceapioperationcreateorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/method_workspaceapioperationcreateorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperation/method_workspaceapioperationcreateorupdate.go index 31e0a6ea5fef..30641e7be40d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/method_workspaceapioperationcreateorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperation/method_workspaceapioperationcreateorupdate.go @@ -36,6 +36,7 @@ func (o WorkspaceApiOperationCreateOrUpdateOperationOptions) ToHeaders() *client func (o WorkspaceApiOperationCreateOrUpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -79,7 +80,6 @@ func (c ApiOperationClient) WorkspaceApiOperationCreateOrUpdate(ctx context.Cont var model OperationContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/method_workspaceapioperationdelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperation/method_workspaceapioperationdelete.go similarity index 99% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/method_workspaceapioperationdelete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperation/method_workspaceapioperationdelete.go index 803c543da5bd..d4c57385ace8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/method_workspaceapioperationdelete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperation/method_workspaceapioperationdelete.go @@ -35,6 +35,7 @@ func (o WorkspaceApiOperationDeleteOperationOptions) ToHeaders() *client.Headers func (o WorkspaceApiOperationDeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/method_workspaceapioperationget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperation/method_workspaceapioperationget.go similarity index 99% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/method_workspaceapioperationget.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperation/method_workspaceapioperationget.go index 2da88a66a2f1..e6dc1ea7d249 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/method_workspaceapioperationget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperation/method_workspaceapioperationget.go @@ -45,7 +45,6 @@ func (c ApiOperationClient) WorkspaceApiOperationGet(ctx context.Context, id Api var model OperationContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/method_workspaceapioperationgetentitytag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperation/method_workspaceapioperationgetentitytag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/method_workspaceapioperationgetentitytag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperation/method_workspaceapioperationgetentitytag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/method_workspaceapioperationlistbyapi.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperation/method_workspaceapioperationlistbyapi.go similarity index 99% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/method_workspaceapioperationlistbyapi.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperation/method_workspaceapioperationlistbyapi.go index dfa7091cdf82..980cf5b41d08 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/method_workspaceapioperationlistbyapi.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperation/method_workspaceapioperationlistbyapi.go @@ -42,6 +42,7 @@ func (o WorkspaceApiOperationListByApiOperationOptions) ToHeaders() *client.Head func (o WorkspaceApiOperationListByApiOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/method_workspaceapioperationupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperation/method_workspaceapioperationupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/method_workspaceapioperationupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperation/method_workspaceapioperationupdate.go index b485b35b34ac..ab2d9f3e6380 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/method_workspaceapioperationupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperation/method_workspaceapioperationupdate.go @@ -36,6 +36,7 @@ func (o WorkspaceApiOperationUpdateOperationOptions) ToHeaders() *client.Headers func (o WorkspaceApiOperationUpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -78,7 +79,6 @@ func (c ApiOperationClient) WorkspaceApiOperationUpdate(ctx context.Context, id var model OperationContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/model_operationcontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperation/model_operationcontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/model_operationcontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperation/model_operationcontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/model_operationcontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperation/model_operationcontractproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/model_operationcontractproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperation/model_operationcontractproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/model_operationupdatecontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperation/model_operationupdatecontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/model_operationupdatecontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperation/model_operationupdatecontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/model_operationupdatecontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperation/model_operationupdatecontractproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/model_operationupdatecontractproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperation/model_operationupdatecontractproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/model_parametercontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperation/model_parametercontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/model_parametercontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperation/model_parametercontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/model_parameterexamplecontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperation/model_parameterexamplecontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/model_parameterexamplecontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperation/model_parameterexamplecontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/model_representationcontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperation/model_representationcontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/model_representationcontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperation/model_representationcontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/model_requestcontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperation/model_requestcontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/model_requestcontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperation/model_requestcontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/model_responsecontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperation/model_responsecontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/model_responsecontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperation/model_responsecontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperation/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperation/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperation/version.go similarity index 66% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperation/version.go index 268ff4bb63fa..0b387e1f3c7d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperation/version.go @@ -3,8 +3,8 @@ package apioperation // 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-05-01-preview" +const defaultApiVersion = "2024-05-01" func userAgent() string { - return "hashicorp/go-azure-sdk/apioperation/2022-08-01" + return "hashicorp/go-azure-sdk/apioperation/2024-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperationpolicy/README.md similarity index 78% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperationpolicy/README.md index 0b70c145c3e3..097015852e10 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperationpolicy/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperationpolicy` Documentation -The `apioperationpolicy` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2023-05-01-preview`). +The `apioperationpolicy` SDK allows for interaction with Azure Resource Manager `apimanagement` (API Version `2024-05-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/apimanagement/2023-05-01-preview/apioperationpolicy" +import "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperationpolicy" ``` @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := apioperationpolicy.NewOperationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue", "operationIdValue") +id := apioperationpolicy.NewOperationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apiId", "operationId") payload := apioperationpolicy.PolicyContract{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := apioperationpolicy.NewOperationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue", "operationIdValue") +id := apioperationpolicy.NewOperationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apiId", "operationId") read, err := client.Delete(ctx, id, apioperationpolicy.DefaultDeleteOperationOptions()) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := apioperationpolicy.NewOperationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue", "operationIdValue") +id := apioperationpolicy.NewOperationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apiId", "operationId") read, err := client.Get(ctx, id, apioperationpolicy.DefaultGetOperationOptions()) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := apioperationpolicy.NewOperationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue", "operationIdValue") +id := apioperationpolicy.NewOperationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apiId", "operationId") read, err := client.GetEntityTag(ctx, id) if err != nil { @@ -93,7 +93,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := apioperationpolicy.NewOperationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue", "operationIdValue") +id := apioperationpolicy.NewOperationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apiId", "operationId") // alternatively `client.ListByOperation(ctx, id)` can be used to do batched pagination items, err := client.ListByOperationComplete(ctx, id) @@ -110,7 +110,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := apioperationpolicy.NewApiOperationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "apiIdValue", "operationIdValue") +id := apioperationpolicy.NewApiOperationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "apiId", "operationId") payload := apioperationpolicy.PolicyContract{ // ... @@ -131,7 +131,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := apioperationpolicy.NewApiOperationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "apiIdValue", "operationIdValue") +id := apioperationpolicy.NewApiOperationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "apiId", "operationId") read, err := client.WorkspaceApiOperationPolicyDelete(ctx, id, apioperationpolicy.DefaultWorkspaceApiOperationPolicyDeleteOperationOptions()) if err != nil { @@ -147,7 +147,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := apioperationpolicy.NewApiOperationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "apiIdValue", "operationIdValue") +id := apioperationpolicy.NewApiOperationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "apiId", "operationId") read, err := client.WorkspaceApiOperationPolicyGet(ctx, id, apioperationpolicy.DefaultWorkspaceApiOperationPolicyGetOperationOptions()) if err != nil { @@ -163,7 +163,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := apioperationpolicy.NewApiOperationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "apiIdValue", "operationIdValue") +id := apioperationpolicy.NewApiOperationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "apiId", "operationId") read, err := client.WorkspaceApiOperationPolicyGetEntityTag(ctx, id) if err != nil { @@ -179,7 +179,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := apioperationpolicy.NewApiOperationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "apiIdValue", "operationIdValue") +id := apioperationpolicy.NewApiOperationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "apiId", "operationId") // alternatively `client.WorkspaceApiOperationPolicyListByOperation(ctx, id)` can be used to do batched pagination items, err := client.WorkspaceApiOperationPolicyListByOperationComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperationpolicy/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperationpolicy/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperationpolicy/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperationpolicy/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/id_apioperation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperationpolicy/id_apioperation.go similarity index 93% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/id_apioperation.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperationpolicy/id_apioperation.go index 15b5b760791e..80b80993b3a3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/id_apioperation.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperationpolicy/id_apioperation.go @@ -48,7 +48,7 @@ func ParseApiOperationID(input string) (*ApiOperationId, error) { } id := ApiOperationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -65,7 +65,7 @@ func ParseApiOperationIDInsensitively(input string) (*ApiOperationId, error) { } id := ApiOperationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -133,13 +133,13 @@ func (id ApiOperationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), - resourceids.UserSpecifiedSegment("workspaceId", "workspaceIdValue"), + resourceids.UserSpecifiedSegment("workspaceId", "workspaceId"), resourceids.StaticSegment("staticApis", "apis", "apis"), - resourceids.UserSpecifiedSegment("apiId", "apiIdValue"), + resourceids.UserSpecifiedSegment("apiId", "apiId"), resourceids.StaticSegment("staticOperations", "operations", "operations"), - resourceids.UserSpecifiedSegment("operationId", "operationIdValue"), + resourceids.UserSpecifiedSegment("operationId", "operationId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/id_operation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperationpolicy/id_operation.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/id_operation.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperationpolicy/id_operation.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperationpolicy/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperationpolicy/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperationpolicy/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperationpolicy/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperationpolicy/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperationpolicy/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/method_getentitytag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperationpolicy/method_getentitytag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/method_getentitytag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperationpolicy/method_getentitytag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/method_listbyoperation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperationpolicy/method_listbyoperation.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/method_listbyoperation.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperationpolicy/method_listbyoperation.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/method_workspaceapioperationpolicycreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperationpolicy/method_workspaceapioperationpolicycreateorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/method_workspaceapioperationpolicycreateorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperationpolicy/method_workspaceapioperationpolicycreateorupdate.go index 749273ac5874..c21831c5e1ad 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/method_workspaceapioperationpolicycreateorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperationpolicy/method_workspaceapioperationpolicycreateorupdate.go @@ -36,6 +36,7 @@ func (o WorkspaceApiOperationPolicyCreateOrUpdateOperationOptions) ToHeaders() * func (o WorkspaceApiOperationPolicyCreateOrUpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -79,7 +80,6 @@ func (c ApiOperationPolicyClient) WorkspaceApiOperationPolicyCreateOrUpdate(ctx var model PolicyContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/method_workspaceapioperationpolicydelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperationpolicy/method_workspaceapioperationpolicydelete.go similarity index 99% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/method_workspaceapioperationpolicydelete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperationpolicy/method_workspaceapioperationpolicydelete.go index 47c3dded764a..6aa0d0aa1677 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/method_workspaceapioperationpolicydelete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperationpolicy/method_workspaceapioperationpolicydelete.go @@ -35,6 +35,7 @@ func (o WorkspaceApiOperationPolicyDeleteOperationOptions) ToHeaders() *client.H func (o WorkspaceApiOperationPolicyDeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/method_workspaceapioperationpolicyget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperationpolicy/method_workspaceapioperationpolicyget.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/method_workspaceapioperationpolicyget.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperationpolicy/method_workspaceapioperationpolicyget.go index 9395af3465aa..37760ed9db30 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/method_workspaceapioperationpolicyget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperationpolicy/method_workspaceapioperationpolicyget.go @@ -34,6 +34,7 @@ func (o WorkspaceApiOperationPolicyGetOperationOptions) ToHeaders() *client.Head func (o WorkspaceApiOperationPolicyGetOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c ApiOperationPolicyClient) WorkspaceApiOperationPolicyGet(ctx context.Con var model PolicyContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/method_workspaceapioperationpolicygetentitytag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperationpolicy/method_workspaceapioperationpolicygetentitytag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/method_workspaceapioperationpolicygetentitytag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperationpolicy/method_workspaceapioperationpolicygetentitytag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/method_workspaceapioperationpolicylistbyoperation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperationpolicy/method_workspaceapioperationpolicylistbyoperation.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/method_workspaceapioperationpolicylistbyoperation.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperationpolicy/method_workspaceapioperationpolicylistbyoperation.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/model_policycontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperationpolicy/model_policycontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/model_policycontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperationpolicy/model_policycontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/model_policycontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperationpolicy/model_policycontractproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/model_policycontractproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperationpolicy/model_policycontractproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperationpolicy/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperationpolicy/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperationpolicy/version.go similarity index 66% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperationpolicy/version.go index 08f23b60c71d..4414670c5c78 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperationpolicy/version.go @@ -3,8 +3,8 @@ package apioperationpolicy // 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-05-01-preview" +const defaultApiVersion = "2024-05-01" func userAgent() string { - return "hashicorp/go-azure-sdk/apioperationpolicy/2022-08-01" + return "hashicorp/go-azure-sdk/apioperationpolicy/2024-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationtag/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperationtag/README.md similarity index 92% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationtag/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperationtag/README.md index 78baf65cc437..85a4164b7b5a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationtag/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperationtag/README.md @@ -1,15 +1,17 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationtag` Documentation -The `apioperationtag` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2023-05-01-preview`). +## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperationtag` Documentation + +The `apioperationtag` SDK allows for interaction with Azure Resource Manager `apimanagement` (API Version `2024-05-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/apimanagement/2023-05-01-preview/apioperationtag" +import "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperationtag" ``` + ### Client Initialization ```go @@ -17,6 +19,7 @@ client := apioperationtag.NewApiOperationTagClientWithBaseURI("https://managemen client.Client.Authorizer = authorizer ``` + ### Example Usage: `ApiOperationTagClient.TagAssignToOperation` ```go @@ -32,6 +35,7 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `ApiOperationTagClient.TagDetachFromOperation` ```go @@ -47,6 +51,7 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `ApiOperationTagClient.TagGetByOperation` ```go @@ -62,6 +67,7 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `ApiOperationTagClient.TagGetEntityStateByOperation` ```go @@ -77,6 +83,7 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `ApiOperationTagClient.TagListByOperation` ```go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationtag/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperationtag/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationtag/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperationtag/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationtag/id_operation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperationtag/id_operation.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationtag/id_operation.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperationtag/id_operation.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationtag/id_operationtag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperationtag/id_operationtag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationtag/id_operationtag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperationtag/id_operationtag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationtag/method_tagassigntooperation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperationtag/method_tagassigntooperation.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationtag/method_tagassigntooperation.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperationtag/method_tagassigntooperation.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationtag/method_tagdetachfromoperation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperationtag/method_tagdetachfromoperation.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationtag/method_tagdetachfromoperation.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperationtag/method_tagdetachfromoperation.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationtag/method_taggetbyoperation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperationtag/method_taggetbyoperation.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationtag/method_taggetbyoperation.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperationtag/method_taggetbyoperation.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationtag/method_taggetentitystatebyoperation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperationtag/method_taggetentitystatebyoperation.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationtag/method_taggetentitystatebyoperation.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperationtag/method_taggetentitystatebyoperation.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationtag/method_taglistbyoperation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperationtag/method_taglistbyoperation.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationtag/method_taglistbyoperation.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperationtag/method_taglistbyoperation.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationtag/model_tagcontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperationtag/model_tagcontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationtag/model_tagcontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperationtag/model_tagcontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationtag/model_tagcontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperationtag/model_tagcontractproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationtag/model_tagcontractproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperationtag/model_tagcontractproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationtag/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperationtag/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationtag/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperationtag/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationtag/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperationtag/version.go similarity index 66% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationtag/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperationtag/version.go index c26883a42685..0d8946b1c3c9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationtag/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperationtag/version.go @@ -3,8 +3,8 @@ package apioperationtag // 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-05-01-preview" +const defaultApiVersion = "2024-05-01" func userAgent() string { - return "hashicorp/go-azure-sdk/apioperationtag/2022-08-01" + return "hashicorp/go-azure-sdk/apioperationtag/2024-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apipolicy/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apipolicy/README.md similarity index 82% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apipolicy/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apipolicy/README.md index b4146c9d28ca..523b779cda54 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apipolicy/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apipolicy/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apipolicy` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apipolicy` Documentation -The `apipolicy` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2023-05-01-preview`). +The `apipolicy` SDK allows for interaction with Azure Resource Manager `apimanagement` (API Version `2024-05-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/apimanagement/2023-05-01-preview/apipolicy" +import "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apipolicy" ``` @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := apipolicy.NewApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue") +id := apipolicy.NewApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apiId") payload := apipolicy.PolicyContract{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := apipolicy.NewApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue") +id := apipolicy.NewApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apiId") read, err := client.Delete(ctx, id, apipolicy.DefaultDeleteOperationOptions()) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := apipolicy.NewApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue") +id := apipolicy.NewApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apiId") read, err := client.Get(ctx, id, apipolicy.DefaultGetOperationOptions()) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := apipolicy.NewApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue") +id := apipolicy.NewApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apiId") read, err := client.GetEntityTag(ctx, id) if err != nil { @@ -93,7 +93,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := apipolicy.NewApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue") +id := apipolicy.NewApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apiId") // alternatively `client.ListByApi(ctx, id)` can be used to do batched pagination items, err := client.ListByApiComplete(ctx, id) @@ -110,7 +110,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := apipolicy.NewWorkspaceApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "apiIdValue") +id := apipolicy.NewWorkspaceApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "apiId") payload := apipolicy.PolicyContract{ // ... @@ -131,7 +131,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := apipolicy.NewWorkspaceApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "apiIdValue") +id := apipolicy.NewWorkspaceApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "apiId") read, err := client.WorkspaceApiPolicyDelete(ctx, id, apipolicy.DefaultWorkspaceApiPolicyDeleteOperationOptions()) if err != nil { @@ -147,7 +147,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := apipolicy.NewWorkspaceApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "apiIdValue") +id := apipolicy.NewWorkspaceApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "apiId") read, err := client.WorkspaceApiPolicyGet(ctx, id, apipolicy.DefaultWorkspaceApiPolicyGetOperationOptions()) if err != nil { @@ -163,7 +163,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := apipolicy.NewWorkspaceApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "apiIdValue") +id := apipolicy.NewWorkspaceApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "apiId") read, err := client.WorkspaceApiPolicyGetEntityTag(ctx, id) if err != nil { @@ -179,7 +179,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := apipolicy.NewWorkspaceApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "apiIdValue") +id := apipolicy.NewWorkspaceApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "apiId") // alternatively `client.WorkspaceApiPolicyListByApi(ctx, id)` can be used to do batched pagination items, err := client.WorkspaceApiPolicyListByApiComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apipolicy/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apipolicy/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apipolicy/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apipolicy/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apipolicy/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apipolicy/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apipolicy/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apipolicy/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apipolicy/id_api.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apipolicy/id_api.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apipolicy/id_api.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apipolicy/id_api.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apipolicy/id_workspaceapi.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apipolicy/id_workspaceapi.go similarity index 94% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apipolicy/id_workspaceapi.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apipolicy/id_workspaceapi.go index a7710bb2ef55..b94912ce7eeb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apipolicy/id_workspaceapi.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apipolicy/id_workspaceapi.go @@ -46,7 +46,7 @@ func ParseWorkspaceApiID(input string) (*WorkspaceApiId, error) { } id := WorkspaceApiId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseWorkspaceApiIDInsensitively(input string) (*WorkspaceApiId, error) { } id := WorkspaceApiId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id WorkspaceApiId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), - resourceids.UserSpecifiedSegment("workspaceId", "workspaceIdValue"), + resourceids.UserSpecifiedSegment("workspaceId", "workspaceId"), resourceids.StaticSegment("staticApis", "apis", "apis"), - resourceids.UserSpecifiedSegment("apiId", "apiIdValue"), + resourceids.UserSpecifiedSegment("apiId", "apiId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apipolicy/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apipolicy/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apipolicy/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apipolicy/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apipolicy/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apipolicy/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apipolicy/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apipolicy/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apipolicy/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apipolicy/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apipolicy/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apipolicy/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apipolicy/method_getentitytag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apipolicy/method_getentitytag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apipolicy/method_getentitytag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apipolicy/method_getentitytag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apipolicy/method_listbyapi.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apipolicy/method_listbyapi.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apipolicy/method_listbyapi.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apipolicy/method_listbyapi.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apipolicy/method_workspaceapipolicycreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apipolicy/method_workspaceapipolicycreateorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apipolicy/method_workspaceapipolicycreateorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apipolicy/method_workspaceapipolicycreateorupdate.go index 003cadb79cec..c54d98f57f52 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apipolicy/method_workspaceapipolicycreateorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apipolicy/method_workspaceapipolicycreateorupdate.go @@ -36,6 +36,7 @@ func (o WorkspaceApiPolicyCreateOrUpdateOperationOptions) ToHeaders() *client.He func (o WorkspaceApiPolicyCreateOrUpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -79,7 +80,6 @@ func (c ApiPolicyClient) WorkspaceApiPolicyCreateOrUpdate(ctx context.Context, i var model PolicyContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apipolicy/method_workspaceapipolicydelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apipolicy/method_workspaceapipolicydelete.go similarity index 99% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apipolicy/method_workspaceapipolicydelete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apipolicy/method_workspaceapipolicydelete.go index f2ceb3f9e4de..0f9bc74b6ea9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apipolicy/method_workspaceapipolicydelete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apipolicy/method_workspaceapipolicydelete.go @@ -35,6 +35,7 @@ func (o WorkspaceApiPolicyDeleteOperationOptions) ToHeaders() *client.Headers { func (o WorkspaceApiPolicyDeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apipolicy/method_workspaceapipolicyget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apipolicy/method_workspaceapipolicyget.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apipolicy/method_workspaceapipolicyget.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apipolicy/method_workspaceapipolicyget.go index 364bd7248f27..0d3c1867f7db 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apipolicy/method_workspaceapipolicyget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apipolicy/method_workspaceapipolicyget.go @@ -34,6 +34,7 @@ func (o WorkspaceApiPolicyGetOperationOptions) ToHeaders() *client.Headers { func (o WorkspaceApiPolicyGetOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c ApiPolicyClient) WorkspaceApiPolicyGet(ctx context.Context, id Workspace var model PolicyContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apipolicy/method_workspaceapipolicygetentitytag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apipolicy/method_workspaceapipolicygetentitytag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apipolicy/method_workspaceapipolicygetentitytag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apipolicy/method_workspaceapipolicygetentitytag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apipolicy/method_workspaceapipolicylistbyapi.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apipolicy/method_workspaceapipolicylistbyapi.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apipolicy/method_workspaceapipolicylistbyapi.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apipolicy/method_workspaceapipolicylistbyapi.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apipolicy/model_policycontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apipolicy/model_policycontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apipolicy/model_policycontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apipolicy/model_policycontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apipolicy/model_policycontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apipolicy/model_policycontractproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apipolicy/model_policycontractproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apipolicy/model_policycontractproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apipolicy/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apipolicy/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apipolicy/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apipolicy/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apipolicy/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apipolicy/version.go similarity index 66% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apipolicy/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apipolicy/version.go index 5b7b7ee75faa..d50353ade1ae 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apipolicy/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apipolicy/version.go @@ -3,8 +3,8 @@ package apipolicy // 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-05-01-preview" +const defaultApiVersion = "2024-05-01" func userAgent() string { - return "hashicorp/go-azure-sdk/apipolicy/2022-08-01" + return "hashicorp/go-azure-sdk/apipolicy/2024-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apirelease/README.md similarity index 80% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apirelease/README.md index 4688d1772d8f..31ec2d31728e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apirelease/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apirelease` Documentation -The `apirelease` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2023-05-01-preview`). +The `apirelease` SDK allows for interaction with Azure Resource Manager `apimanagement` (API Version `2024-05-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/apimanagement/2023-05-01-preview/apirelease" +import "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apirelease" ``` @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := apirelease.NewReleaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue", "releaseIdValue") +id := apirelease.NewReleaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apiId", "releaseId") payload := apirelease.ApiReleaseContract{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := apirelease.NewReleaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue", "releaseIdValue") +id := apirelease.NewReleaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apiId", "releaseId") read, err := client.Delete(ctx, id, apirelease.DefaultDeleteOperationOptions()) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := apirelease.NewReleaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue", "releaseIdValue") +id := apirelease.NewReleaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apiId", "releaseId") read, err := client.Get(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := apirelease.NewReleaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue", "releaseIdValue") +id := apirelease.NewReleaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apiId", "releaseId") read, err := client.GetEntityTag(ctx, id) if err != nil { @@ -93,7 +93,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := apirelease.NewApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue") +id := apirelease.NewApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apiId") // alternatively `client.ListByService(ctx, id, apirelease.DefaultListByServiceOperationOptions())` can be used to do batched pagination items, err := client.ListByServiceComplete(ctx, id, apirelease.DefaultListByServiceOperationOptions()) @@ -110,7 +110,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := apirelease.NewReleaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue", "releaseIdValue") +id := apirelease.NewReleaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apiId", "releaseId") payload := apirelease.ApiReleaseContract{ // ... @@ -131,7 +131,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := apirelease.NewApiReleaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "apiIdValue", "releaseIdValue") +id := apirelease.NewApiReleaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "apiId", "releaseId") payload := apirelease.ApiReleaseContract{ // ... @@ -152,7 +152,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := apirelease.NewApiReleaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "apiIdValue", "releaseIdValue") +id := apirelease.NewApiReleaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "apiId", "releaseId") read, err := client.WorkspaceApiReleaseDelete(ctx, id, apirelease.DefaultWorkspaceApiReleaseDeleteOperationOptions()) if err != nil { @@ -168,7 +168,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := apirelease.NewApiReleaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "apiIdValue", "releaseIdValue") +id := apirelease.NewApiReleaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "apiId", "releaseId") read, err := client.WorkspaceApiReleaseGet(ctx, id) if err != nil { @@ -184,7 +184,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := apirelease.NewApiReleaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "apiIdValue", "releaseIdValue") +id := apirelease.NewApiReleaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "apiId", "releaseId") read, err := client.WorkspaceApiReleaseGetEntityTag(ctx, id) if err != nil { @@ -200,7 +200,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := apirelease.NewWorkspaceApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "apiIdValue") +id := apirelease.NewWorkspaceApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "apiId") // alternatively `client.WorkspaceApiReleaseListByService(ctx, id, apirelease.DefaultWorkspaceApiReleaseListByServiceOperationOptions())` can be used to do batched pagination items, err := client.WorkspaceApiReleaseListByServiceComplete(ctx, id, apirelease.DefaultWorkspaceApiReleaseListByServiceOperationOptions()) @@ -217,7 +217,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := apirelease.NewApiReleaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "apiIdValue", "releaseIdValue") +id := apirelease.NewApiReleaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "apiId", "releaseId") payload := apirelease.ApiReleaseContract{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apirelease/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apirelease/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/id_api.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apirelease/id_api.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/id_api.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apirelease/id_api.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/id_apirelease.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apirelease/id_apirelease.go similarity index 93% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/id_apirelease.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apirelease/id_apirelease.go index e93d37f020b7..489b38572a0c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/id_apirelease.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apirelease/id_apirelease.go @@ -48,7 +48,7 @@ func ParseApiReleaseID(input string) (*ApiReleaseId, error) { } id := ApiReleaseId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -65,7 +65,7 @@ func ParseApiReleaseIDInsensitively(input string) (*ApiReleaseId, error) { } id := ApiReleaseId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -133,13 +133,13 @@ func (id ApiReleaseId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), - resourceids.UserSpecifiedSegment("workspaceId", "workspaceIdValue"), + resourceids.UserSpecifiedSegment("workspaceId", "workspaceId"), resourceids.StaticSegment("staticApis", "apis", "apis"), - resourceids.UserSpecifiedSegment("apiId", "apiIdValue"), + resourceids.UserSpecifiedSegment("apiId", "apiId"), resourceids.StaticSegment("staticReleases", "releases", "releases"), - resourceids.UserSpecifiedSegment("releaseId", "releaseIdValue"), + resourceids.UserSpecifiedSegment("releaseId", "releaseId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/id_release.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apirelease/id_release.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/id_release.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apirelease/id_release.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/id_workspaceapi.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apirelease/id_workspaceapi.go similarity index 94% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/id_workspaceapi.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apirelease/id_workspaceapi.go index 708a5e834165..141cc5771c1f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/id_workspaceapi.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apirelease/id_workspaceapi.go @@ -46,7 +46,7 @@ func ParseWorkspaceApiID(input string) (*WorkspaceApiId, error) { } id := WorkspaceApiId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseWorkspaceApiIDInsensitively(input string) (*WorkspaceApiId, error) { } id := WorkspaceApiId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id WorkspaceApiId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), - resourceids.UserSpecifiedSegment("workspaceId", "workspaceIdValue"), + resourceids.UserSpecifiedSegment("workspaceId", "workspaceId"), resourceids.StaticSegment("staticApis", "apis", "apis"), - resourceids.UserSpecifiedSegment("apiId", "apiIdValue"), + resourceids.UserSpecifiedSegment("apiId", "apiId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apirelease/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apirelease/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apirelease/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apirelease/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apirelease/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apirelease/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/method_getentitytag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apirelease/method_getentitytag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/method_getentitytag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apirelease/method_getentitytag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/method_listbyservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apirelease/method_listbyservice.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/method_listbyservice.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apirelease/method_listbyservice.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apirelease/method_update.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/method_update.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apirelease/method_update.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/method_workspaceapireleasecreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apirelease/method_workspaceapireleasecreateorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/method_workspaceapireleasecreateorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apirelease/method_workspaceapireleasecreateorupdate.go index 3dcd9fce3ab9..80cc66eac132 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/method_workspaceapireleasecreateorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apirelease/method_workspaceapireleasecreateorupdate.go @@ -36,6 +36,7 @@ func (o WorkspaceApiReleaseCreateOrUpdateOperationOptions) ToHeaders() *client.H func (o WorkspaceApiReleaseCreateOrUpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -79,7 +80,6 @@ func (c ApiReleaseClient) WorkspaceApiReleaseCreateOrUpdate(ctx context.Context, var model ApiReleaseContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/method_workspaceapireleasedelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apirelease/method_workspaceapireleasedelete.go similarity index 99% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/method_workspaceapireleasedelete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apirelease/method_workspaceapireleasedelete.go index 0fd63c74e777..38f1f981660c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/method_workspaceapireleasedelete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apirelease/method_workspaceapireleasedelete.go @@ -35,6 +35,7 @@ func (o WorkspaceApiReleaseDeleteOperationOptions) ToHeaders() *client.Headers { func (o WorkspaceApiReleaseDeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/method_workspaceapireleaseget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apirelease/method_workspaceapireleaseget.go similarity index 99% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/method_workspaceapireleaseget.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apirelease/method_workspaceapireleaseget.go index df9e7f1c4c08..f0e400e1964f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/method_workspaceapireleaseget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apirelease/method_workspaceapireleaseget.go @@ -45,7 +45,6 @@ func (c ApiReleaseClient) WorkspaceApiReleaseGet(ctx context.Context, id ApiRele var model ApiReleaseContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/method_workspaceapireleasegetentitytag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apirelease/method_workspaceapireleasegetentitytag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/method_workspaceapireleasegetentitytag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apirelease/method_workspaceapireleasegetentitytag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/method_workspaceapireleaselistbyservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apirelease/method_workspaceapireleaselistbyservice.go similarity index 99% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/method_workspaceapireleaselistbyservice.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apirelease/method_workspaceapireleaselistbyservice.go index 578ad231c489..7e85d2a7e53e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/method_workspaceapireleaselistbyservice.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apirelease/method_workspaceapireleaselistbyservice.go @@ -41,6 +41,7 @@ func (o WorkspaceApiReleaseListByServiceOperationOptions) ToHeaders() *client.He func (o WorkspaceApiReleaseListByServiceOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/method_workspaceapireleaseupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apirelease/method_workspaceapireleaseupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/method_workspaceapireleaseupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apirelease/method_workspaceapireleaseupdate.go index d301c6d2adc5..67c933b8f86c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/method_workspaceapireleaseupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apirelease/method_workspaceapireleaseupdate.go @@ -36,6 +36,7 @@ func (o WorkspaceApiReleaseUpdateOperationOptions) ToHeaders() *client.Headers { func (o WorkspaceApiReleaseUpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -78,7 +79,6 @@ func (c ApiReleaseClient) WorkspaceApiReleaseUpdate(ctx context.Context, id ApiR var model ApiReleaseContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/model_apireleasecontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apirelease/model_apireleasecontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/model_apireleasecontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apirelease/model_apireleasecontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/model_apireleasecontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apirelease/model_apireleasecontractproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/model_apireleasecontractproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apirelease/model_apireleasecontractproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apirelease/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apirelease/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apirelease/version.go similarity index 66% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apirelease/version.go index 26eab9b0a2f7..ae07a781782f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apirelease/version.go @@ -3,8 +3,8 @@ package apirelease // 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-05-01-preview" +const defaultApiVersion = "2024-05-01" func userAgent() string { - return "hashicorp/go-azure-sdk/apirelease/2022-08-01" + return "hashicorp/go-azure-sdk/apirelease/2024-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apischema/README.md similarity index 79% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apischema/README.md index a00df308fe40..0ffccdaf37c8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apischema/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apischema` Documentation -The `apischema` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2023-05-01-preview`). +The `apischema` SDK allows for interaction with Azure Resource Manager `apimanagement` (API Version `2024-05-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/apimanagement/2023-05-01-preview/apischema" +import "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apischema" ``` @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := apischema.NewApiSchemaID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue", "schemaIdValue") +id := apischema.NewApiSchemaID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apiId", "schemaId") payload := apischema.SchemaContract{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload, apischema.DefaultCreat ```go ctx := context.TODO() -id := apischema.NewApiSchemaID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue", "schemaIdValue") +id := apischema.NewApiSchemaID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apiId", "schemaId") read, err := client.Delete(ctx, id, apischema.DefaultDeleteOperationOptions()) if err != nil { @@ -57,7 +57,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := apischema.NewApiSchemaID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue", "schemaIdValue") +id := apischema.NewApiSchemaID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apiId", "schemaId") read, err := client.Get(ctx, id) if err != nil { @@ -73,7 +73,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := apischema.NewApiSchemaID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue", "schemaIdValue") +id := apischema.NewApiSchemaID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apiId", "schemaId") read, err := client.GetEntityTag(ctx, id) if err != nil { @@ -89,7 +89,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := apischema.NewApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue") +id := apischema.NewApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apiId") // alternatively `client.ListByApi(ctx, id, apischema.DefaultListByApiOperationOptions())` can be used to do batched pagination items, err := client.ListByApiComplete(ctx, id, apischema.DefaultListByApiOperationOptions()) @@ -106,7 +106,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := apischema.NewWorkspaceApiSchemaID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "apiIdValue", "schemaIdValue") +id := apischema.NewWorkspaceApiSchemaID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "apiId", "schemaId") payload := apischema.SchemaContract{ // ... @@ -123,7 +123,7 @@ if err := client.WorkspaceApiSchemaCreateOrUpdateThenPoll(ctx, id, payload, apis ```go ctx := context.TODO() -id := apischema.NewWorkspaceApiSchemaID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "apiIdValue", "schemaIdValue") +id := apischema.NewWorkspaceApiSchemaID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "apiId", "schemaId") read, err := client.WorkspaceApiSchemaDelete(ctx, id, apischema.DefaultWorkspaceApiSchemaDeleteOperationOptions()) if err != nil { @@ -139,7 +139,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := apischema.NewWorkspaceApiSchemaID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "apiIdValue", "schemaIdValue") +id := apischema.NewWorkspaceApiSchemaID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "apiId", "schemaId") read, err := client.WorkspaceApiSchemaGet(ctx, id) if err != nil { @@ -155,7 +155,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := apischema.NewWorkspaceApiSchemaID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "apiIdValue", "schemaIdValue") +id := apischema.NewWorkspaceApiSchemaID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "apiId", "schemaId") read, err := client.WorkspaceApiSchemaGetEntityTag(ctx, id) if err != nil { @@ -171,7 +171,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := apischema.NewWorkspaceApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "apiIdValue") +id := apischema.NewWorkspaceApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "apiId") // alternatively `client.WorkspaceApiSchemaListByApi(ctx, id, apischema.DefaultWorkspaceApiSchemaListByApiOperationOptions())` can be used to do batched pagination items, err := client.WorkspaceApiSchemaListByApiComplete(ctx, id, apischema.DefaultWorkspaceApiSchemaListByApiOperationOptions()) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apischema/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apischema/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/id_api.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apischema/id_api.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/id_api.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apischema/id_api.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/id_apischema.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apischema/id_apischema.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/id_apischema.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apischema/id_apischema.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/id_workspaceapi.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apischema/id_workspaceapi.go similarity index 94% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/id_workspaceapi.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apischema/id_workspaceapi.go index a3b95e32e100..cc198a7b7014 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/id_workspaceapi.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apischema/id_workspaceapi.go @@ -46,7 +46,7 @@ func ParseWorkspaceApiID(input string) (*WorkspaceApiId, error) { } id := WorkspaceApiId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseWorkspaceApiIDInsensitively(input string) (*WorkspaceApiId, error) { } id := WorkspaceApiId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id WorkspaceApiId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), - resourceids.UserSpecifiedSegment("workspaceId", "workspaceIdValue"), + resourceids.UserSpecifiedSegment("workspaceId", "workspaceId"), resourceids.StaticSegment("staticApis", "apis", "apis"), - resourceids.UserSpecifiedSegment("apiId", "apiIdValue"), + resourceids.UserSpecifiedSegment("apiId", "apiId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/id_workspaceapischema.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apischema/id_workspaceapischema.go similarity index 93% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/id_workspaceapischema.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apischema/id_workspaceapischema.go index 2b8ca6ceea18..d49e8fc5a6e7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/id_workspaceapischema.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apischema/id_workspaceapischema.go @@ -48,7 +48,7 @@ func ParseWorkspaceApiSchemaID(input string) (*WorkspaceApiSchemaId, error) { } id := WorkspaceApiSchemaId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -65,7 +65,7 @@ func ParseWorkspaceApiSchemaIDInsensitively(input string) (*WorkspaceApiSchemaId } id := WorkspaceApiSchemaId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -133,13 +133,13 @@ func (id WorkspaceApiSchemaId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), - resourceids.UserSpecifiedSegment("workspaceId", "workspaceIdValue"), + resourceids.UserSpecifiedSegment("workspaceId", "workspaceId"), resourceids.StaticSegment("staticApis", "apis", "apis"), - resourceids.UserSpecifiedSegment("apiId", "apiIdValue"), + resourceids.UserSpecifiedSegment("apiId", "apiId"), resourceids.StaticSegment("staticSchemas", "schemas", "schemas"), - resourceids.UserSpecifiedSegment("schemaId", "schemaIdValue"), + resourceids.UserSpecifiedSegment("schemaId", "schemaId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apischema/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apischema/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apischema/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apischema/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apischema/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apischema/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/method_getentitytag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apischema/method_getentitytag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/method_getentitytag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apischema/method_getentitytag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/method_listbyapi.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apischema/method_listbyapi.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/method_listbyapi.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apischema/method_listbyapi.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/method_workspaceapischemacreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apischema/method_workspaceapischemacreateorupdate.go similarity index 99% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/method_workspaceapischemacreateorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apischema/method_workspaceapischemacreateorupdate.go index 86ee733c7042..1870d025fd6e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/method_workspaceapischemacreateorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apischema/method_workspaceapischemacreateorupdate.go @@ -39,6 +39,7 @@ func (o WorkspaceApiSchemaCreateOrUpdateOperationOptions) ToHeaders() *client.He func (o WorkspaceApiSchemaCreateOrUpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/method_workspaceapischemadelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apischema/method_workspaceapischemadelete.go similarity index 99% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/method_workspaceapischemadelete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apischema/method_workspaceapischemadelete.go index f5c12caff48d..f8d52c4b601e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/method_workspaceapischemadelete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apischema/method_workspaceapischemadelete.go @@ -36,6 +36,7 @@ func (o WorkspaceApiSchemaDeleteOperationOptions) ToHeaders() *client.Headers { func (o WorkspaceApiSchemaDeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/method_workspaceapischemaget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apischema/method_workspaceapischemaget.go similarity index 99% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/method_workspaceapischemaget.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apischema/method_workspaceapischemaget.go index 0e2e9ec7b079..42120431a21d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/method_workspaceapischemaget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apischema/method_workspaceapischemaget.go @@ -45,7 +45,6 @@ func (c ApiSchemaClient) WorkspaceApiSchemaGet(ctx context.Context, id Workspace var model SchemaContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/method_workspaceapischemagetentitytag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apischema/method_workspaceapischemagetentitytag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/method_workspaceapischemagetentitytag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apischema/method_workspaceapischemagetentitytag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/method_workspaceapischemalistbyapi.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apischema/method_workspaceapischemalistbyapi.go similarity index 99% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/method_workspaceapischemalistbyapi.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apischema/method_workspaceapischemalistbyapi.go index df9c59dfaf8d..a72accff3f1f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/method_workspaceapischemalistbyapi.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apischema/method_workspaceapischemalistbyapi.go @@ -41,6 +41,7 @@ func (o WorkspaceApiSchemaListByApiOperationOptions) ToHeaders() *client.Headers func (o WorkspaceApiSchemaListByApiOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/model_schemacontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apischema/model_schemacontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/model_schemacontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apischema/model_schemacontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/model_schemacontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apischema/model_schemacontractproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/model_schemacontractproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apischema/model_schemacontractproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/model_schemadocumentproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apischema/model_schemadocumentproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/model_schemadocumentproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apischema/model_schemadocumentproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apischema/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apischema/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apischema/version.go similarity index 66% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apischema/version.go index 3512ac98a812..9f009bee2d98 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apischema/version.go @@ -3,8 +3,8 @@ package apischema // 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-05-01-preview" +const defaultApiVersion = "2024-05-01" func userAgent() string { - return "hashicorp/go-azure-sdk/apischema/2022-08-01" + return "hashicorp/go-azure-sdk/apischema/2024-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitag/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apitag/README.md similarity index 92% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitag/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apitag/README.md index 2a4eae179f02..0a95db48480c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitag/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apitag/README.md @@ -1,15 +1,17 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitag` Documentation -The `apitag` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2023-05-01-preview`). +## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apitag` Documentation + +The `apitag` SDK allows for interaction with Azure Resource Manager `apimanagement` (API Version `2024-05-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/apimanagement/2023-05-01-preview/apitag" +import "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apitag" ``` + ### Client Initialization ```go @@ -17,6 +19,7 @@ client := apitag.NewApiTagClientWithBaseURI("https://management.azure.com") client.Client.Authorizer = authorizer ``` + ### Example Usage: `ApiTagClient.TagAssignToApi` ```go @@ -32,6 +35,7 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `ApiTagClient.TagDetachFromApi` ```go @@ -47,6 +51,7 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `ApiTagClient.TagGetByApi` ```go @@ -62,6 +67,7 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `ApiTagClient.TagGetEntityStateByApi` ```go @@ -77,6 +83,7 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `ApiTagClient.TagListByApi` ```go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitag/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apitag/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitag/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apitag/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitag/id_api.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apitag/id_api.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitag/id_api.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apitag/id_api.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitag/id_apitag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apitag/id_apitag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitag/id_apitag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apitag/id_apitag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitag/method_tagassigntoapi.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apitag/method_tagassigntoapi.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitag/method_tagassigntoapi.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apitag/method_tagassigntoapi.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitag/method_tagdetachfromapi.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apitag/method_tagdetachfromapi.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitag/method_tagdetachfromapi.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apitag/method_tagdetachfromapi.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitag/method_taggetbyapi.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apitag/method_taggetbyapi.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitag/method_taggetbyapi.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apitag/method_taggetbyapi.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitag/method_taggetentitystatebyapi.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apitag/method_taggetentitystatebyapi.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitag/method_taggetentitystatebyapi.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apitag/method_taggetentitystatebyapi.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitag/method_taglistbyapi.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apitag/method_taglistbyapi.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitag/method_taglistbyapi.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apitag/method_taglistbyapi.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitag/model_tagcontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apitag/model_tagcontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitag/model_tagcontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apitag/model_tagcontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitag/model_tagcontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apitag/model_tagcontractproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitag/model_tagcontractproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apitag/model_tagcontractproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitag/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apitag/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitag/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apitag/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitag/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apitag/version.go similarity index 67% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitag/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apitag/version.go index 7aa5a8cdbb50..9c624611f4c9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitag/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apitag/version.go @@ -3,8 +3,8 @@ package apitag // 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-05-01-preview" +const defaultApiVersion = "2024-05-01" func userAgent() string { - return "hashicorp/go-azure-sdk/apitag/2022-08-01" + return "hashicorp/go-azure-sdk/apitag/2024-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitagdescription/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apitagdescription/README.md similarity index 92% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitagdescription/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apitagdescription/README.md index a430f821db98..34268ff6290a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitagdescription/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apitagdescription/README.md @@ -1,15 +1,17 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitagdescription` Documentation -The `apitagdescription` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2023-05-01-preview`). +## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apitagdescription` Documentation + +The `apitagdescription` SDK allows for interaction with Azure Resource Manager `apimanagement` (API Version `2024-05-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/apimanagement/2023-05-01-preview/apitagdescription" +import "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apitagdescription" ``` + ### Client Initialization ```go @@ -17,6 +19,7 @@ client := apitagdescription.NewApiTagDescriptionClientWithBaseURI("https://manag client.Client.Authorizer = authorizer ``` + ### Example Usage: `ApiTagDescriptionClient.CreateOrUpdate` ```go @@ -37,6 +40,7 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `ApiTagDescriptionClient.Delete` ```go @@ -52,6 +56,7 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `ApiTagDescriptionClient.Get` ```go @@ -67,6 +72,7 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `ApiTagDescriptionClient.GetEntityTag` ```go @@ -82,6 +88,7 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `ApiTagDescriptionClient.ListByService` ```go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitagdescription/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apitagdescription/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitagdescription/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apitagdescription/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitagdescription/id_api.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apitagdescription/id_api.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitagdescription/id_api.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apitagdescription/id_api.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitagdescription/id_tagdescription.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apitagdescription/id_tagdescription.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitagdescription/id_tagdescription.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apitagdescription/id_tagdescription.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitagdescription/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apitagdescription/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitagdescription/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apitagdescription/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitagdescription/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apitagdescription/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitagdescription/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apitagdescription/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitagdescription/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apitagdescription/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitagdescription/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apitagdescription/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitagdescription/method_getentitytag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apitagdescription/method_getentitytag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitagdescription/method_getentitytag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apitagdescription/method_getentitytag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitagdescription/method_listbyservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apitagdescription/method_listbyservice.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitagdescription/method_listbyservice.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apitagdescription/method_listbyservice.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitagdescription/model_tagdescriptionbaseproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apitagdescription/model_tagdescriptionbaseproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitagdescription/model_tagdescriptionbaseproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apitagdescription/model_tagdescriptionbaseproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitagdescription/model_tagdescriptioncontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apitagdescription/model_tagdescriptioncontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitagdescription/model_tagdescriptioncontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apitagdescription/model_tagdescriptioncontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitagdescription/model_tagdescriptioncontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apitagdescription/model_tagdescriptioncontractproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitagdescription/model_tagdescriptioncontractproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apitagdescription/model_tagdescriptioncontractproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitagdescription/model_tagdescriptioncreateparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apitagdescription/model_tagdescriptioncreateparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitagdescription/model_tagdescriptioncreateparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apitagdescription/model_tagdescriptioncreateparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitagdescription/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apitagdescription/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitagdescription/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apitagdescription/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitagdescription/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apitagdescription/version.go similarity index 66% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitagdescription/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apitagdescription/version.go index 935d61ab80c0..252206da7b42 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitagdescription/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apitagdescription/version.go @@ -3,8 +3,8 @@ package apitagdescription // 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-05-01-preview" +const defaultApiVersion = "2024-05-01" func userAgent() string { - return "hashicorp/go-azure-sdk/apitagdescription/2022-08-01" + return "hashicorp/go-azure-sdk/apitagdescription/2024-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apiversionset/README.md similarity index 81% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apiversionset/README.md index 8c81918db3f4..87a47a74119d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apiversionset/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apiversionset` Documentation -The `apiversionset` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2023-05-01-preview`). +The `apiversionset` SDK allows for interaction with Azure Resource Manager `apimanagement` (API Version `2024-05-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/apimanagement/2023-05-01-preview/apiversionset" +import "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apiversionset" ``` @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := apiversionset.NewApiVersionSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "versionSetIdValue") +id := apiversionset.NewApiVersionSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "versionSetId") payload := apiversionset.ApiVersionSetContract{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := apiversionset.NewApiVersionSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "versionSetIdValue") +id := apiversionset.NewApiVersionSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "versionSetId") read, err := client.Get(ctx, id) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := apiversionset.NewApiVersionSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "versionSetIdValue") +id := apiversionset.NewApiVersionSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "versionSetId") read, err := client.GetEntityTag(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := apiversionset.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue") +id := apiversionset.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") // alternatively `client.ListByService(ctx, id, apiversionset.DefaultListByServiceOperationOptions())` can be used to do batched pagination items, err := client.ListByServiceComplete(ctx, id, apiversionset.DefaultListByServiceOperationOptions()) @@ -94,7 +94,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := apiversionset.NewApiVersionSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "versionSetIdValue") +id := apiversionset.NewApiVersionSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "versionSetId") payload := apiversionset.ApiVersionSetUpdateParameters{ // ... @@ -115,7 +115,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := apiversionset.NewWorkspaceApiVersionSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "versionSetIdValue") +id := apiversionset.NewWorkspaceApiVersionSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "versionSetId") payload := apiversionset.ApiVersionSetContract{ // ... @@ -136,7 +136,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := apiversionset.NewWorkspaceApiVersionSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "versionSetIdValue") +id := apiversionset.NewWorkspaceApiVersionSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "versionSetId") read, err := client.WorkspaceApiVersionSetGet(ctx, id) if err != nil { @@ -152,7 +152,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := apiversionset.NewWorkspaceApiVersionSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "versionSetIdValue") +id := apiversionset.NewWorkspaceApiVersionSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "versionSetId") read, err := client.WorkspaceApiVersionSetGetEntityTag(ctx, id) if err != nil { @@ -168,7 +168,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := apiversionset.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue") +id := apiversionset.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId") // alternatively `client.WorkspaceApiVersionSetListByService(ctx, id, apiversionset.DefaultWorkspaceApiVersionSetListByServiceOperationOptions())` can be used to do batched pagination items, err := client.WorkspaceApiVersionSetListByServiceComplete(ctx, id, apiversionset.DefaultWorkspaceApiVersionSetListByServiceOperationOptions()) @@ -185,7 +185,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := apiversionset.NewWorkspaceApiVersionSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "versionSetIdValue") +id := apiversionset.NewWorkspaceApiVersionSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "versionSetId") payload := apiversionset.ApiVersionSetUpdateParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apiversionset/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apiversionset/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apiversionset/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apiversionset/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/id_apiversionset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apiversionset/id_apiversionset.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/id_apiversionset.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apiversionset/id_apiversionset.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/id_service.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apiversionset/id_service.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/id_service.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apiversionset/id_service.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/id_workspace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apiversionset/id_workspace.go similarity index 94% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/id_workspace.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apiversionset/id_workspace.go index ffae2571e198..6d6d5effef1d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/id_workspace.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apiversionset/id_workspace.go @@ -44,7 +44,7 @@ func ParseWorkspaceID(input string) (*WorkspaceId, error) { } id := WorkspaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseWorkspaceIDInsensitively(input string) (*WorkspaceId, error) { } id := WorkspaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id WorkspaceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), - resourceids.UserSpecifiedSegment("workspaceId", "workspaceIdValue"), + resourceids.UserSpecifiedSegment("workspaceId", "workspaceId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/id_workspaceapiversionset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apiversionset/id_workspaceapiversionset.go similarity index 95% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/id_workspaceapiversionset.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apiversionset/id_workspaceapiversionset.go index 07c056e413ca..a6955471b80a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/id_workspaceapiversionset.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apiversionset/id_workspaceapiversionset.go @@ -46,7 +46,7 @@ func ParseWorkspaceApiVersionSetID(input string) (*WorkspaceApiVersionSetId, err } id := WorkspaceApiVersionSetId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseWorkspaceApiVersionSetIDInsensitively(input string) (*WorkspaceApiVers } id := WorkspaceApiVersionSetId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id WorkspaceApiVersionSetId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), - resourceids.UserSpecifiedSegment("workspaceId", "workspaceIdValue"), + resourceids.UserSpecifiedSegment("workspaceId", "workspaceId"), resourceids.StaticSegment("staticApiVersionSets", "apiVersionSets", "apiVersionSets"), - resourceids.UserSpecifiedSegment("versionSetId", "versionSetIdValue"), + resourceids.UserSpecifiedSegment("versionSetId", "versionSetId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apiversionset/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apiversionset/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apiversionset/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apiversionset/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/method_getentitytag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apiversionset/method_getentitytag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/method_getentitytag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apiversionset/method_getentitytag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/method_listbyservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apiversionset/method_listbyservice.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/method_listbyservice.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apiversionset/method_listbyservice.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apiversionset/method_update.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/method_update.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apiversionset/method_update.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/method_workspaceapiversionsetcreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apiversionset/method_workspaceapiversionsetcreateorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/method_workspaceapiversionsetcreateorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apiversionset/method_workspaceapiversionsetcreateorupdate.go index 0fde6db7b9f9..4e8fd2c2aa1f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/method_workspaceapiversionsetcreateorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apiversionset/method_workspaceapiversionsetcreateorupdate.go @@ -36,6 +36,7 @@ func (o WorkspaceApiVersionSetCreateOrUpdateOperationOptions) ToHeaders() *clien func (o WorkspaceApiVersionSetCreateOrUpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -79,7 +80,6 @@ func (c ApiVersionSetClient) WorkspaceApiVersionSetCreateOrUpdate(ctx context.Co var model ApiVersionSetContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/method_workspaceapiversionsetget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apiversionset/method_workspaceapiversionsetget.go similarity index 99% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/method_workspaceapiversionsetget.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apiversionset/method_workspaceapiversionsetget.go index 2a61095ca422..30c1f373c914 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/method_workspaceapiversionsetget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apiversionset/method_workspaceapiversionsetget.go @@ -45,7 +45,6 @@ func (c ApiVersionSetClient) WorkspaceApiVersionSetGet(ctx context.Context, id W var model ApiVersionSetContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/method_workspaceapiversionsetgetentitytag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apiversionset/method_workspaceapiversionsetgetentitytag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/method_workspaceapiversionsetgetentitytag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apiversionset/method_workspaceapiversionsetgetentitytag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/method_workspaceapiversionsetlistbyservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apiversionset/method_workspaceapiversionsetlistbyservice.go similarity index 99% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/method_workspaceapiversionsetlistbyservice.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apiversionset/method_workspaceapiversionsetlistbyservice.go index e65dc1b59563..40e50bad2482 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/method_workspaceapiversionsetlistbyservice.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apiversionset/method_workspaceapiversionsetlistbyservice.go @@ -41,6 +41,7 @@ func (o WorkspaceApiVersionSetListByServiceOperationOptions) ToHeaders() *client func (o WorkspaceApiVersionSetListByServiceOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/method_workspaceapiversionsetupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apiversionset/method_workspaceapiversionsetupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/method_workspaceapiversionsetupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apiversionset/method_workspaceapiversionsetupdate.go index dda3ecdb80b9..2d7ebc58bf48 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/method_workspaceapiversionsetupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apiversionset/method_workspaceapiversionsetupdate.go @@ -36,6 +36,7 @@ func (o WorkspaceApiVersionSetUpdateOperationOptions) ToHeaders() *client.Header func (o WorkspaceApiVersionSetUpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -78,7 +79,6 @@ func (c ApiVersionSetClient) WorkspaceApiVersionSetUpdate(ctx context.Context, i var model ApiVersionSetContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/model_apiversionsetcontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apiversionset/model_apiversionsetcontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/model_apiversionsetcontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apiversionset/model_apiversionsetcontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/model_apiversionsetcontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apiversionset/model_apiversionsetcontractproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/model_apiversionsetcontractproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apiversionset/model_apiversionsetcontractproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/model_apiversionsetupdateparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apiversionset/model_apiversionsetupdateparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/model_apiversionsetupdateparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apiversionset/model_apiversionsetupdateparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/model_apiversionsetupdateparametersproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apiversionset/model_apiversionsetupdateparametersproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/model_apiversionsetupdateparametersproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apiversionset/model_apiversionsetupdateparametersproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apiversionset/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apiversionset/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apiversionset/version.go similarity index 66% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apiversionset/version.go index d01fc359a2ca..29dbf98c2e46 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apiversionset/version.go @@ -3,8 +3,8 @@ package apiversionset // 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-05-01-preview" +const defaultApiVersion = "2024-05-01" func userAgent() string { - return "hashicorp/go-azure-sdk/apiversionset/2022-08-01" + return "hashicorp/go-azure-sdk/apiversionset/2024-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionsets/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apiversionsets/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionsets/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apiversionsets/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionsets/id_apiversionset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apiversionsets/id_apiversionset.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionsets/id_apiversionset.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apiversionsets/id_apiversionset.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionsets/id_workspaceapiversionset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apiversionsets/id_workspaceapiversionset.go similarity index 95% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionsets/id_workspaceapiversionset.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apiversionsets/id_workspaceapiversionset.go index c5271af64dc9..efbdcbf13767 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionsets/id_workspaceapiversionset.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apiversionsets/id_workspaceapiversionset.go @@ -46,7 +46,7 @@ func ParseWorkspaceApiVersionSetID(input string) (*WorkspaceApiVersionSetId, err } id := WorkspaceApiVersionSetId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseWorkspaceApiVersionSetIDInsensitively(input string) (*WorkspaceApiVers } id := WorkspaceApiVersionSetId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id WorkspaceApiVersionSetId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), - resourceids.UserSpecifiedSegment("workspaceId", "workspaceIdValue"), + resourceids.UserSpecifiedSegment("workspaceId", "workspaceId"), resourceids.StaticSegment("staticApiVersionSets", "apiVersionSets", "apiVersionSets"), - resourceids.UserSpecifiedSegment("versionSetId", "versionSetIdValue"), + resourceids.UserSpecifiedSegment("versionSetId", "versionSetId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionsets/method_apiversionsetdelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apiversionsets/method_apiversionsetdelete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionsets/method_apiversionsetdelete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apiversionsets/method_apiversionsetdelete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionsets/method_workspaceapiversionsetdelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apiversionsets/method_workspaceapiversionsetdelete.go similarity index 99% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionsets/method_workspaceapiversionsetdelete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apiversionsets/method_workspaceapiversionsetdelete.go index bef988a2083a..11216ac1eb42 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionsets/method_workspaceapiversionsetdelete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apiversionsets/method_workspaceapiversionsetdelete.go @@ -35,6 +35,7 @@ func (o WorkspaceApiVersionSetDeleteOperationOptions) ToHeaders() *client.Header func (o WorkspaceApiVersionSetDeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionsets/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apiversionsets/version.go similarity index 66% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionsets/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apiversionsets/version.go index dc87f3b4d4a4..1f423e5cbd66 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionsets/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apiversionsets/version.go @@ -3,8 +3,8 @@ package apiversionsets // 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-05-01-preview" +const defaultApiVersion = "2024-05-01" func userAgent() string { - return "hashicorp/go-azure-sdk/apiversionsets/2022-08-01" + return "hashicorp/go-azure-sdk/apiversionsets/2024-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/authorizationserver/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/authorizationserver/README.md similarity index 93% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/authorizationserver/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/authorizationserver/README.md index 25618e7a7869..706cbc561840 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/authorizationserver/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/authorizationserver/README.md @@ -1,15 +1,17 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/authorizationserver` Documentation -The `authorizationserver` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2023-05-01-preview`). +## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/authorizationserver` Documentation + +The `authorizationserver` SDK allows for interaction with Azure Resource Manager `apimanagement` (API Version `2024-05-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/apimanagement/2023-05-01-preview/authorizationserver" +import "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/authorizationserver" ``` + ### Client Initialization ```go @@ -17,6 +19,7 @@ client := authorizationserver.NewAuthorizationServerClientWithBaseURI("https://m client.Client.Authorizer = authorizer ``` + ### Example Usage: `AuthorizationServerClient.CreateOrUpdate` ```go @@ -37,6 +40,7 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `AuthorizationServerClient.Delete` ```go @@ -52,6 +56,7 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `AuthorizationServerClient.Get` ```go @@ -67,6 +72,7 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `AuthorizationServerClient.GetEntityTag` ```go @@ -82,6 +88,7 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `AuthorizationServerClient.ListByService` ```go @@ -98,6 +105,7 @@ for _, item := range items { } ``` + ### Example Usage: `AuthorizationServerClient.ListSecrets` ```go @@ -113,6 +121,7 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `AuthorizationServerClient.Update` ```go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/authorizationserver/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/authorizationserver/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/authorizationserver/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/authorizationserver/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/authorizationserver/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/authorizationserver/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/authorizationserver/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/authorizationserver/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/authorizationserver/id_authorizationserver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/authorizationserver/id_authorizationserver.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/authorizationserver/id_authorizationserver.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/authorizationserver/id_authorizationserver.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/authorizationserver/id_service.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/authorizationserver/id_service.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/authorizationserver/id_service.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/authorizationserver/id_service.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/authorizationserver/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/authorizationserver/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/authorizationserver/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/authorizationserver/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/authorizationserver/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/authorizationserver/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/authorizationserver/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/authorizationserver/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/authorizationserver/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/authorizationserver/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/authorizationserver/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/authorizationserver/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/authorizationserver/method_getentitytag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/authorizationserver/method_getentitytag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/authorizationserver/method_getentitytag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/authorizationserver/method_getentitytag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/authorizationserver/method_listbyservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/authorizationserver/method_listbyservice.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/authorizationserver/method_listbyservice.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/authorizationserver/method_listbyservice.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/authorizationserver/method_listsecrets.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/authorizationserver/method_listsecrets.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/authorizationserver/method_listsecrets.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/authorizationserver/method_listsecrets.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/authorizationserver/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/authorizationserver/method_update.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/authorizationserver/method_update.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/authorizationserver/method_update.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/authorizationserver/model_authorizationservercontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/authorizationserver/model_authorizationservercontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/authorizationserver/model_authorizationservercontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/authorizationserver/model_authorizationservercontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/authorizationserver/model_authorizationservercontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/authorizationserver/model_authorizationservercontractproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/authorizationserver/model_authorizationservercontractproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/authorizationserver/model_authorizationservercontractproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/authorizationserver/model_authorizationserversecretscontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/authorizationserver/model_authorizationserversecretscontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/authorizationserver/model_authorizationserversecretscontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/authorizationserver/model_authorizationserversecretscontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/authorizationserver/model_authorizationserverupdatecontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/authorizationserver/model_authorizationserverupdatecontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/authorizationserver/model_authorizationserverupdatecontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/authorizationserver/model_authorizationserverupdatecontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/authorizationserver/model_authorizationserverupdatecontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/authorizationserver/model_authorizationserverupdatecontractproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/authorizationserver/model_authorizationserverupdatecontractproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/authorizationserver/model_authorizationserverupdatecontractproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/authorizationserver/model_tokenbodyparametercontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/authorizationserver/model_tokenbodyparametercontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/authorizationserver/model_tokenbodyparametercontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/authorizationserver/model_tokenbodyparametercontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/authorizationserver/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/authorizationserver/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/authorizationserver/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/authorizationserver/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/authorizationserver/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/authorizationserver/version.go similarity index 65% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/authorizationserver/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/authorizationserver/version.go index cd8dc3f860fe..5125704330f1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/authorizationserver/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/authorizationserver/version.go @@ -3,8 +3,8 @@ package authorizationserver // 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-05-01-preview" +const defaultApiVersion = "2024-05-01" func userAgent() string { - return "hashicorp/go-azure-sdk/authorizationserver/2022-08-01" + return "hashicorp/go-azure-sdk/authorizationserver/2024-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/backend/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/backend/README.md new file mode 100644 index 000000000000..487bf08f0c30 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/backend/README.md @@ -0,0 +1,234 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/backend` Documentation + +The `backend` SDK allows for interaction with Azure Resource Manager `apimanagement` (API Version `2024-05-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/apimanagement/2024-05-01/backend" +``` + + +### Client Initialization + +```go +client := backend.NewBackendClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `BackendClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := backend.NewBackendID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "backendId") + +payload := backend.BackendContract{ + // ... +} + + +read, err := client.CreateOrUpdate(ctx, id, payload, backend.DefaultCreateOrUpdateOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `BackendClient.Delete` + +```go +ctx := context.TODO() +id := backend.NewBackendID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "backendId") + +read, err := client.Delete(ctx, id, backend.DefaultDeleteOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `BackendClient.Get` + +```go +ctx := context.TODO() +id := backend.NewBackendID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "backendId") + +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: `BackendClient.GetEntityTag` + +```go +ctx := context.TODO() +id := backend.NewBackendID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "backendId") + +read, err := client.GetEntityTag(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `BackendClient.ListByService` + +```go +ctx := context.TODO() +id := backend.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") + +// alternatively `client.ListByService(ctx, id, backend.DefaultListByServiceOperationOptions())` can be used to do batched pagination +items, err := client.ListByServiceComplete(ctx, id, backend.DefaultListByServiceOperationOptions()) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `BackendClient.Update` + +```go +ctx := context.TODO() +id := backend.NewBackendID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "backendId") + +payload := backend.BackendUpdateParameters{ + // ... +} + + +read, err := client.Update(ctx, id, payload, backend.DefaultUpdateOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `BackendClient.WorkspaceBackendCreateOrUpdate` + +```go +ctx := context.TODO() +id := backend.NewWorkspaceBackendID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "backendId") + +payload := backend.BackendContract{ + // ... +} + + +read, err := client.WorkspaceBackendCreateOrUpdate(ctx, id, payload, backend.DefaultWorkspaceBackendCreateOrUpdateOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `BackendClient.WorkspaceBackendDelete` + +```go +ctx := context.TODO() +id := backend.NewWorkspaceBackendID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "backendId") + +read, err := client.WorkspaceBackendDelete(ctx, id, backend.DefaultWorkspaceBackendDeleteOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `BackendClient.WorkspaceBackendGet` + +```go +ctx := context.TODO() +id := backend.NewWorkspaceBackendID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "backendId") + +read, err := client.WorkspaceBackendGet(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `BackendClient.WorkspaceBackendGetEntityTag` + +```go +ctx := context.TODO() +id := backend.NewWorkspaceBackendID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "backendId") + +read, err := client.WorkspaceBackendGetEntityTag(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `BackendClient.WorkspaceBackendListByWorkspace` + +```go +ctx := context.TODO() +id := backend.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId") + +// alternatively `client.WorkspaceBackendListByWorkspace(ctx, id, backend.DefaultWorkspaceBackendListByWorkspaceOperationOptions())` can be used to do batched pagination +items, err := client.WorkspaceBackendListByWorkspaceComplete(ctx, id, backend.DefaultWorkspaceBackendListByWorkspaceOperationOptions()) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `BackendClient.WorkspaceBackendUpdate` + +```go +ctx := context.TODO() +id := backend.NewWorkspaceBackendID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "backendId") + +payload := backend.BackendUpdateParameters{ + // ... +} + + +read, err := client.WorkspaceBackendUpdate(ctx, id, payload, backend.DefaultWorkspaceBackendUpdateOperationOptions()) +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/apimanagement/2023-05-01-preview/backend/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/backend/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/backend/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/backend/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/backend/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/id_backend.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/backend/id_backend.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/id_backend.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/backend/id_backend.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/id_service.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/backend/id_service.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/id_service.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/backend/id_service.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/backend/id_workspace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/backend/id_workspace.go new file mode 100644 index 000000000000..47da99f17992 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/backend/id_workspace.go @@ -0,0 +1,139 @@ +package backend + +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(&WorkspaceId{}) +} + +var _ resourceids.ResourceId = &WorkspaceId{} + +// WorkspaceId is a struct representing the Resource ID for a Workspace +type WorkspaceId struct { + SubscriptionId string + ResourceGroupName string + ServiceName string + WorkspaceId string +} + +// NewWorkspaceID returns a new WorkspaceId struct +func NewWorkspaceID(subscriptionId string, resourceGroupName string, serviceName string, workspaceId string) WorkspaceId { + return WorkspaceId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + ServiceName: serviceName, + WorkspaceId: workspaceId, + } +} + +// ParseWorkspaceID parses 'input' into a WorkspaceId +func ParseWorkspaceID(input string) (*WorkspaceId, error) { + parser := resourceids.NewParserFromResourceIdType(&WorkspaceId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := WorkspaceId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseWorkspaceIDInsensitively parses 'input' case-insensitively into a WorkspaceId +// note: this method should only be used for API response data and not user input +func ParseWorkspaceIDInsensitively(input string) (*WorkspaceId, error) { + parser := resourceids.NewParserFromResourceIdType(&WorkspaceId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := WorkspaceId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *WorkspaceId) 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.ServiceName, ok = input.Parsed["serviceName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "serviceName", input) + } + + if id.WorkspaceId, ok = input.Parsed["workspaceId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "workspaceId", input) + } + + return nil +} + +// ValidateWorkspaceID checks that 'input' can be parsed as a Workspace ID +func ValidateWorkspaceID(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 := ParseWorkspaceID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Workspace ID +func (id WorkspaceId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.ApiManagement/service/%s/workspaces/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.ServiceName, id.WorkspaceId) +} + +// Segments returns a slice of Resource ID Segments which comprise this Workspace ID +func (id WorkspaceId) 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("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), + resourceids.StaticSegment("staticService", "service", "service"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), + resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), + resourceids.UserSpecifiedSegment("workspaceId", "workspaceId"), + } +} + +// String returns a human-readable description of this Workspace ID +func (id WorkspaceId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Service Name: %q", id.ServiceName), + fmt.Sprintf("Workspace: %q", id.WorkspaceId), + } + return fmt.Sprintf("Workspace (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/backend/id_workspacebackend.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/backend/id_workspacebackend.go new file mode 100644 index 000000000000..0aef4311d6a5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/backend/id_workspacebackend.go @@ -0,0 +1,148 @@ +package backend + +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(&WorkspaceBackendId{}) +} + +var _ resourceids.ResourceId = &WorkspaceBackendId{} + +// WorkspaceBackendId is a struct representing the Resource ID for a Workspace Backend +type WorkspaceBackendId struct { + SubscriptionId string + ResourceGroupName string + ServiceName string + WorkspaceId string + BackendId string +} + +// NewWorkspaceBackendID returns a new WorkspaceBackendId struct +func NewWorkspaceBackendID(subscriptionId string, resourceGroupName string, serviceName string, workspaceId string, backendId string) WorkspaceBackendId { + return WorkspaceBackendId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + ServiceName: serviceName, + WorkspaceId: workspaceId, + BackendId: backendId, + } +} + +// ParseWorkspaceBackendID parses 'input' into a WorkspaceBackendId +func ParseWorkspaceBackendID(input string) (*WorkspaceBackendId, error) { + parser := resourceids.NewParserFromResourceIdType(&WorkspaceBackendId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := WorkspaceBackendId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseWorkspaceBackendIDInsensitively parses 'input' case-insensitively into a WorkspaceBackendId +// note: this method should only be used for API response data and not user input +func ParseWorkspaceBackendIDInsensitively(input string) (*WorkspaceBackendId, error) { + parser := resourceids.NewParserFromResourceIdType(&WorkspaceBackendId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := WorkspaceBackendId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *WorkspaceBackendId) 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.ServiceName, ok = input.Parsed["serviceName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "serviceName", input) + } + + if id.WorkspaceId, ok = input.Parsed["workspaceId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "workspaceId", input) + } + + if id.BackendId, ok = input.Parsed["backendId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "backendId", input) + } + + return nil +} + +// ValidateWorkspaceBackendID checks that 'input' can be parsed as a Workspace Backend ID +func ValidateWorkspaceBackendID(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 := ParseWorkspaceBackendID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Workspace Backend ID +func (id WorkspaceBackendId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.ApiManagement/service/%s/workspaces/%s/backends/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.ServiceName, id.WorkspaceId, id.BackendId) +} + +// Segments returns a slice of Resource ID Segments which comprise this Workspace Backend ID +func (id WorkspaceBackendId) 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("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), + resourceids.StaticSegment("staticService", "service", "service"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), + resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), + resourceids.UserSpecifiedSegment("workspaceId", "workspaceId"), + resourceids.StaticSegment("staticBackends", "backends", "backends"), + resourceids.UserSpecifiedSegment("backendId", "backendId"), + } +} + +// String returns a human-readable description of this Workspace Backend ID +func (id WorkspaceBackendId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Service Name: %q", id.ServiceName), + fmt.Sprintf("Workspace: %q", id.WorkspaceId), + fmt.Sprintf("Backend: %q", id.BackendId), + } + return fmt.Sprintf("Workspace Backend (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/backend/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/backend/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/backend/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/backend/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/backend/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/backend/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/method_getentitytag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/backend/method_getentitytag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/method_getentitytag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/backend/method_getentitytag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/method_listbyservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/backend/method_listbyservice.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/method_listbyservice.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/backend/method_listbyservice.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/backend/method_update.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/method_update.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/backend/method_update.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/backend/method_workspacebackendcreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/backend/method_workspacebackendcreateorupdate.go new file mode 100644 index 000000000000..44eef97c07c2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/backend/method_workspacebackendcreateorupdate.go @@ -0,0 +1,88 @@ +package backend + +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 WorkspaceBackendCreateOrUpdateOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *BackendContract +} + +type WorkspaceBackendCreateOrUpdateOperationOptions struct { + IfMatch *string +} + +func DefaultWorkspaceBackendCreateOrUpdateOperationOptions() WorkspaceBackendCreateOrUpdateOperationOptions { + return WorkspaceBackendCreateOrUpdateOperationOptions{} +} + +func (o WorkspaceBackendCreateOrUpdateOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + if o.IfMatch != nil { + out.Append("If-Match", fmt.Sprintf("%v", *o.IfMatch)) + } + return &out +} + +func (o WorkspaceBackendCreateOrUpdateOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o WorkspaceBackendCreateOrUpdateOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + + return &out +} + +// WorkspaceBackendCreateOrUpdate ... +func (c BackendClient) WorkspaceBackendCreateOrUpdate(ctx context.Context, id WorkspaceBackendId, input BackendContract, options WorkspaceBackendCreateOrUpdateOperationOptions) (result WorkspaceBackendCreateOrUpdateOperationResponse, 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 BackendContract + 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/apimanagement/2024-05-01/backend/method_workspacebackenddelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/backend/method_workspacebackenddelete.go new file mode 100644 index 000000000000..aa0fa5ac65d1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/backend/method_workspacebackenddelete.go @@ -0,0 +1,77 @@ +package backend + +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 WorkspaceBackendDeleteOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +type WorkspaceBackendDeleteOperationOptions struct { + IfMatch *string +} + +func DefaultWorkspaceBackendDeleteOperationOptions() WorkspaceBackendDeleteOperationOptions { + return WorkspaceBackendDeleteOperationOptions{} +} + +func (o WorkspaceBackendDeleteOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + if o.IfMatch != nil { + out.Append("If-Match", fmt.Sprintf("%v", *o.IfMatch)) + } + return &out +} + +func (o WorkspaceBackendDeleteOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o WorkspaceBackendDeleteOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + + return &out +} + +// WorkspaceBackendDelete ... +func (c BackendClient) WorkspaceBackendDelete(ctx context.Context, id WorkspaceBackendId, options WorkspaceBackendDeleteOperationOptions) (result WorkspaceBackendDeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + 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 + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/backend/method_workspacebackendget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/backend/method_workspacebackendget.go new file mode 100644 index 000000000000..1495b5b5e864 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/backend/method_workspacebackendget.go @@ -0,0 +1,53 @@ +package backend + +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 WorkspaceBackendGetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *BackendContract +} + +// WorkspaceBackendGet ... +func (c BackendClient) WorkspaceBackendGet(ctx context.Context, id WorkspaceBackendId) (result WorkspaceBackendGetOperationResponse, 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 BackendContract + 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/apimanagement/2024-05-01/backend/method_workspacebackendgetentitytag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/backend/method_workspacebackendgetentitytag.go new file mode 100644 index 000000000000..fd27ceec92c7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/backend/method_workspacebackendgetentitytag.go @@ -0,0 +1,46 @@ +package backend + +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 WorkspaceBackendGetEntityTagOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// WorkspaceBackendGetEntityTag ... +func (c BackendClient) WorkspaceBackendGetEntityTag(ctx context.Context, id WorkspaceBackendId) (result WorkspaceBackendGetEntityTagOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodHead, + 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/apimanagement/2024-05-01/backend/method_workspacebackendlistbyworkspace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/backend/method_workspacebackendlistbyworkspace.go new file mode 100644 index 000000000000..7ac85789e42e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/backend/method_workspacebackendlistbyworkspace.go @@ -0,0 +1,142 @@ +package backend + +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 WorkspaceBackendListByWorkspaceOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]BackendContract +} + +type WorkspaceBackendListByWorkspaceCompleteResult struct { + LatestHttpResponse *http.Response + Items []BackendContract +} + +type WorkspaceBackendListByWorkspaceOperationOptions struct { + Filter *string + Skip *int64 + Top *int64 +} + +func DefaultWorkspaceBackendListByWorkspaceOperationOptions() WorkspaceBackendListByWorkspaceOperationOptions { + return WorkspaceBackendListByWorkspaceOperationOptions{} +} + +func (o WorkspaceBackendListByWorkspaceOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o WorkspaceBackendListByWorkspaceOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o WorkspaceBackendListByWorkspaceOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Filter != nil { + out.Append("$filter", fmt.Sprintf("%v", *o.Filter)) + } + if o.Skip != nil { + out.Append("$skip", fmt.Sprintf("%v", *o.Skip)) + } + if o.Top != nil { + out.Append("$top", fmt.Sprintf("%v", *o.Top)) + } + return &out +} + +type WorkspaceBackendListByWorkspaceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkspaceBackendListByWorkspaceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// WorkspaceBackendListByWorkspace ... +func (c BackendClient) WorkspaceBackendListByWorkspace(ctx context.Context, id WorkspaceId, options WorkspaceBackendListByWorkspaceOperationOptions) (result WorkspaceBackendListByWorkspaceOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + OptionsObject: options, + Pager: &WorkspaceBackendListByWorkspaceCustomPager{}, + Path: fmt.Sprintf("%s/backends", 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 *[]BackendContract `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// WorkspaceBackendListByWorkspaceComplete retrieves all the results into a single object +func (c BackendClient) WorkspaceBackendListByWorkspaceComplete(ctx context.Context, id WorkspaceId, options WorkspaceBackendListByWorkspaceOperationOptions) (WorkspaceBackendListByWorkspaceCompleteResult, error) { + return c.WorkspaceBackendListByWorkspaceCompleteMatchingPredicate(ctx, id, options, BackendContractOperationPredicate{}) +} + +// WorkspaceBackendListByWorkspaceCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c BackendClient) WorkspaceBackendListByWorkspaceCompleteMatchingPredicate(ctx context.Context, id WorkspaceId, options WorkspaceBackendListByWorkspaceOperationOptions, predicate BackendContractOperationPredicate) (result WorkspaceBackendListByWorkspaceCompleteResult, err error) { + items := make([]BackendContract, 0) + + resp, err := c.WorkspaceBackendListByWorkspace(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 = WorkspaceBackendListByWorkspaceCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/backend/method_workspacebackendupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/backend/method_workspacebackendupdate.go new file mode 100644 index 000000000000..66bfb9b3b584 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/backend/method_workspacebackendupdate.go @@ -0,0 +1,87 @@ +package backend + +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 WorkspaceBackendUpdateOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *BackendContract +} + +type WorkspaceBackendUpdateOperationOptions struct { + IfMatch *string +} + +func DefaultWorkspaceBackendUpdateOperationOptions() WorkspaceBackendUpdateOperationOptions { + return WorkspaceBackendUpdateOperationOptions{} +} + +func (o WorkspaceBackendUpdateOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + if o.IfMatch != nil { + out.Append("If-Match", fmt.Sprintf("%v", *o.IfMatch)) + } + return &out +} + +func (o WorkspaceBackendUpdateOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o WorkspaceBackendUpdateOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + + return &out +} + +// WorkspaceBackendUpdate ... +func (c BackendClient) WorkspaceBackendUpdate(ctx context.Context, id WorkspaceBackendId, input BackendUpdateParameters, options WorkspaceBackendUpdateOperationOptions) (result WorkspaceBackendUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPatch, + 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 BackendContract + 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/apimanagement/2023-05-01-preview/backend/model_backendauthorizationheadercredentials.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/backend/model_backendauthorizationheadercredentials.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/model_backendauthorizationheadercredentials.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/backend/model_backendauthorizationheadercredentials.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/model_backendbaseparameterspool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/backend/model_backendbaseparameterspool.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/model_backendbaseparameterspool.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/backend/model_backendbaseparameterspool.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/model_backendcircuitbreaker.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/backend/model_backendcircuitbreaker.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/model_backendcircuitbreaker.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/backend/model_backendcircuitbreaker.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/model_backendcontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/backend/model_backendcontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/model_backendcontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/backend/model_backendcontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/model_backendcontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/backend/model_backendcontractproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/model_backendcontractproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/backend/model_backendcontractproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/model_backendcredentialscontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/backend/model_backendcredentialscontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/model_backendcredentialscontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/backend/model_backendcredentialscontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/model_backendpoolitem.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/backend/model_backendpoolitem.go similarity index 63% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/model_backendpoolitem.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/backend/model_backendpoolitem.go index 8200cb181efd..338d2a42657e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/model_backendpoolitem.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/backend/model_backendpoolitem.go @@ -4,5 +4,7 @@ package backend // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type BackendPoolItem struct { - Id string `json:"id"` + Id string `json:"id"` + Priority *int64 `json:"priority,omitempty"` + Weight *int64 `json:"weight,omitempty"` } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/model_backendproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/backend/model_backendproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/model_backendproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/backend/model_backendproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/model_backendproxycontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/backend/model_backendproxycontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/model_backendproxycontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/backend/model_backendproxycontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/model_backendservicefabricclusterproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/backend/model_backendservicefabricclusterproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/model_backendservicefabricclusterproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/backend/model_backendservicefabricclusterproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/model_backendtlsproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/backend/model_backendtlsproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/model_backendtlsproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/backend/model_backendtlsproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/model_backendupdateparameterproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/backend/model_backendupdateparameterproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/model_backendupdateparameterproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/backend/model_backendupdateparameterproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/model_backendupdateparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/backend/model_backendupdateparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/model_backendupdateparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/backend/model_backendupdateparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/model_circuitbreakerfailurecondition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/backend/model_circuitbreakerfailurecondition.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/model_circuitbreakerfailurecondition.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/backend/model_circuitbreakerfailurecondition.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/model_circuitbreakerrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/backend/model_circuitbreakerrule.go similarity index 83% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/model_circuitbreakerrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/backend/model_circuitbreakerrule.go index e303141edad5..c6356eff915c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/model_circuitbreakerrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/backend/model_circuitbreakerrule.go @@ -4,6 +4,7 @@ package backend // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type CircuitBreakerRule struct { + AcceptRetryAfter *bool `json:"acceptRetryAfter,omitempty"` FailureCondition *CircuitBreakerFailureCondition `json:"failureCondition,omitempty"` Name *string `json:"name,omitempty"` TripDuration *string `json:"tripDuration,omitempty"` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/model_failurestatuscoderange.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/backend/model_failurestatuscoderange.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/model_failurestatuscoderange.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/backend/model_failurestatuscoderange.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/model_x509certificatename.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/backend/model_x509certificatename.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/model_x509certificatename.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/backend/model_x509certificatename.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/backend/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/backend/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/backend/version.go similarity index 67% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/backend/version.go index 2813536b7ecf..ef913b127f5a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/backend/version.go @@ -3,8 +3,8 @@ package backend // 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-05-01-preview" +const defaultApiVersion = "2024-05-01" func userAgent() string { - return "hashicorp/go-azure-sdk/backend/2022-08-01" + return "hashicorp/go-azure-sdk/backend/2024-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/cache/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/cache/README.md similarity index 93% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/cache/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/cache/README.md index 7a2bae391414..795b830525ff 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/cache/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/cache/README.md @@ -1,15 +1,17 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/cache` Documentation -The `cache` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2023-05-01-preview`). +## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/cache` Documentation + +The `cache` SDK allows for interaction with Azure Resource Manager `apimanagement` (API Version `2024-05-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/apimanagement/2023-05-01-preview/cache" +import "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/cache" ``` + ### Client Initialization ```go @@ -17,6 +19,7 @@ client := cache.NewCacheClientWithBaseURI("https://management.azure.com") client.Client.Authorizer = authorizer ``` + ### Example Usage: `CacheClient.CreateOrUpdate` ```go @@ -37,6 +40,7 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `CacheClient.Delete` ```go @@ -52,6 +56,7 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `CacheClient.Get` ```go @@ -67,6 +72,7 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `CacheClient.GetEntityTag` ```go @@ -82,6 +88,7 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `CacheClient.ListByService` ```go @@ -98,6 +105,7 @@ for _, item := range items { } ``` + ### Example Usage: `CacheClient.Update` ```go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/cache/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/cache/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/cache/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/cache/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/cache/id_cache.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/cache/id_cache.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/cache/id_cache.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/cache/id_cache.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/cache/id_service.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/cache/id_service.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/cache/id_service.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/cache/id_service.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/cache/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/cache/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/cache/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/cache/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/cache/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/cache/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/cache/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/cache/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/cache/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/cache/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/cache/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/cache/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/cache/method_getentitytag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/cache/method_getentitytag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/cache/method_getentitytag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/cache/method_getentitytag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/cache/method_listbyservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/cache/method_listbyservice.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/cache/method_listbyservice.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/cache/method_listbyservice.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/cache/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/cache/method_update.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/cache/method_update.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/cache/method_update.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/cache/model_cachecontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/cache/model_cachecontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/cache/model_cachecontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/cache/model_cachecontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/cache/model_cachecontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/cache/model_cachecontractproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/cache/model_cachecontractproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/cache/model_cachecontractproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/cache/model_cacheupdateparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/cache/model_cacheupdateparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/cache/model_cacheupdateparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/cache/model_cacheupdateparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/cache/model_cacheupdateproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/cache/model_cacheupdateproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/cache/model_cacheupdateproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/cache/model_cacheupdateproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/cache/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/cache/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/cache/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/cache/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/cache/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/cache/version.go similarity index 67% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/cache/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/cache/version.go index 8e730ecaf955..12ae9c149d13 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/cache/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/cache/version.go @@ -3,8 +3,8 @@ package cache // 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-05-01-preview" +const defaultApiVersion = "2024-05-01" func userAgent() string { - return "hashicorp/go-azure-sdk/cache/2022-08-01" + return "hashicorp/go-azure-sdk/cache/2024-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/certificate/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/certificate/README.md new file mode 100644 index 000000000000..0b996320dbee --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/certificate/README.md @@ -0,0 +1,224 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/certificate` Documentation + +The `certificate` SDK allows for interaction with Azure Resource Manager `apimanagement` (API Version `2024-05-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/apimanagement/2024-05-01/certificate" +``` + + +### Client Initialization + +```go +client := certificate.NewCertificateClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `CertificateClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := certificate.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "certificateId") + +payload := certificate.CertificateCreateOrUpdateParameters{ + // ... +} + + +read, err := client.CreateOrUpdate(ctx, id, payload, certificate.DefaultCreateOrUpdateOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `CertificateClient.Delete` + +```go +ctx := context.TODO() +id := certificate.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "certificateId") + +read, err := client.Delete(ctx, id, certificate.DefaultDeleteOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `CertificateClient.Get` + +```go +ctx := context.TODO() +id := certificate.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "certificateId") + +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: `CertificateClient.GetEntityTag` + +```go +ctx := context.TODO() +id := certificate.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "certificateId") + +read, err := client.GetEntityTag(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `CertificateClient.ListByService` + +```go +ctx := context.TODO() +id := certificate.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") + +// alternatively `client.ListByService(ctx, id, certificate.DefaultListByServiceOperationOptions())` can be used to do batched pagination +items, err := client.ListByServiceComplete(ctx, id, certificate.DefaultListByServiceOperationOptions()) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `CertificateClient.RefreshSecret` + +```go +ctx := context.TODO() +id := certificate.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "certificateId") + +read, err := client.RefreshSecret(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `CertificateClient.WorkspaceCertificateCreateOrUpdate` + +```go +ctx := context.TODO() +id := certificate.NewWorkspaceCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "certificateId") + +payload := certificate.CertificateCreateOrUpdateParameters{ + // ... +} + + +read, err := client.WorkspaceCertificateCreateOrUpdate(ctx, id, payload, certificate.DefaultWorkspaceCertificateCreateOrUpdateOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `CertificateClient.WorkspaceCertificateDelete` + +```go +ctx := context.TODO() +id := certificate.NewWorkspaceCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "certificateId") + +read, err := client.WorkspaceCertificateDelete(ctx, id, certificate.DefaultWorkspaceCertificateDeleteOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `CertificateClient.WorkspaceCertificateGet` + +```go +ctx := context.TODO() +id := certificate.NewWorkspaceCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "certificateId") + +read, err := client.WorkspaceCertificateGet(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `CertificateClient.WorkspaceCertificateGetEntityTag` + +```go +ctx := context.TODO() +id := certificate.NewWorkspaceCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "certificateId") + +read, err := client.WorkspaceCertificateGetEntityTag(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `CertificateClient.WorkspaceCertificateListByWorkspace` + +```go +ctx := context.TODO() +id := certificate.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId") + +// alternatively `client.WorkspaceCertificateListByWorkspace(ctx, id, certificate.DefaultWorkspaceCertificateListByWorkspaceOperationOptions())` can be used to do batched pagination +items, err := client.WorkspaceCertificateListByWorkspaceComplete(ctx, id, certificate.DefaultWorkspaceCertificateListByWorkspaceOperationOptions()) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `CertificateClient.WorkspaceCertificateRefreshSecret` + +```go +ctx := context.TODO() +id := certificate.NewWorkspaceCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "certificateId") + +read, err := client.WorkspaceCertificateRefreshSecret(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/apimanagement/2023-05-01-preview/certificate/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/certificate/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/certificate/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/certificate/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/certificate/id_certificate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/certificate/id_certificate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/certificate/id_certificate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/certificate/id_certificate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/certificate/id_service.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/certificate/id_service.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/certificate/id_service.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/certificate/id_service.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/certificate/id_workspace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/certificate/id_workspace.go new file mode 100644 index 000000000000..b96bad7a856d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/certificate/id_workspace.go @@ -0,0 +1,139 @@ +package certificate + +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(&WorkspaceId{}) +} + +var _ resourceids.ResourceId = &WorkspaceId{} + +// WorkspaceId is a struct representing the Resource ID for a Workspace +type WorkspaceId struct { + SubscriptionId string + ResourceGroupName string + ServiceName string + WorkspaceId string +} + +// NewWorkspaceID returns a new WorkspaceId struct +func NewWorkspaceID(subscriptionId string, resourceGroupName string, serviceName string, workspaceId string) WorkspaceId { + return WorkspaceId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + ServiceName: serviceName, + WorkspaceId: workspaceId, + } +} + +// ParseWorkspaceID parses 'input' into a WorkspaceId +func ParseWorkspaceID(input string) (*WorkspaceId, error) { + parser := resourceids.NewParserFromResourceIdType(&WorkspaceId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := WorkspaceId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseWorkspaceIDInsensitively parses 'input' case-insensitively into a WorkspaceId +// note: this method should only be used for API response data and not user input +func ParseWorkspaceIDInsensitively(input string) (*WorkspaceId, error) { + parser := resourceids.NewParserFromResourceIdType(&WorkspaceId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := WorkspaceId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *WorkspaceId) 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.ServiceName, ok = input.Parsed["serviceName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "serviceName", input) + } + + if id.WorkspaceId, ok = input.Parsed["workspaceId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "workspaceId", input) + } + + return nil +} + +// ValidateWorkspaceID checks that 'input' can be parsed as a Workspace ID +func ValidateWorkspaceID(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 := ParseWorkspaceID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Workspace ID +func (id WorkspaceId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.ApiManagement/service/%s/workspaces/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.ServiceName, id.WorkspaceId) +} + +// Segments returns a slice of Resource ID Segments which comprise this Workspace ID +func (id WorkspaceId) 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("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), + resourceids.StaticSegment("staticService", "service", "service"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), + resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), + resourceids.UserSpecifiedSegment("workspaceId", "workspaceId"), + } +} + +// String returns a human-readable description of this Workspace ID +func (id WorkspaceId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Service Name: %q", id.ServiceName), + fmt.Sprintf("Workspace: %q", id.WorkspaceId), + } + return fmt.Sprintf("Workspace (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/certificate/id_workspacecertificate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/certificate/id_workspacecertificate.go new file mode 100644 index 000000000000..5b927b645bca --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/certificate/id_workspacecertificate.go @@ -0,0 +1,148 @@ +package certificate + +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(&WorkspaceCertificateId{}) +} + +var _ resourceids.ResourceId = &WorkspaceCertificateId{} + +// WorkspaceCertificateId is a struct representing the Resource ID for a Workspace Certificate +type WorkspaceCertificateId struct { + SubscriptionId string + ResourceGroupName string + ServiceName string + WorkspaceId string + CertificateId string +} + +// NewWorkspaceCertificateID returns a new WorkspaceCertificateId struct +func NewWorkspaceCertificateID(subscriptionId string, resourceGroupName string, serviceName string, workspaceId string, certificateId string) WorkspaceCertificateId { + return WorkspaceCertificateId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + ServiceName: serviceName, + WorkspaceId: workspaceId, + CertificateId: certificateId, + } +} + +// ParseWorkspaceCertificateID parses 'input' into a WorkspaceCertificateId +func ParseWorkspaceCertificateID(input string) (*WorkspaceCertificateId, error) { + parser := resourceids.NewParserFromResourceIdType(&WorkspaceCertificateId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := WorkspaceCertificateId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseWorkspaceCertificateIDInsensitively parses 'input' case-insensitively into a WorkspaceCertificateId +// note: this method should only be used for API response data and not user input +func ParseWorkspaceCertificateIDInsensitively(input string) (*WorkspaceCertificateId, error) { + parser := resourceids.NewParserFromResourceIdType(&WorkspaceCertificateId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := WorkspaceCertificateId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *WorkspaceCertificateId) 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.ServiceName, ok = input.Parsed["serviceName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "serviceName", input) + } + + if id.WorkspaceId, ok = input.Parsed["workspaceId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "workspaceId", input) + } + + if id.CertificateId, ok = input.Parsed["certificateId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "certificateId", input) + } + + return nil +} + +// ValidateWorkspaceCertificateID checks that 'input' can be parsed as a Workspace Certificate ID +func ValidateWorkspaceCertificateID(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 := ParseWorkspaceCertificateID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Workspace Certificate ID +func (id WorkspaceCertificateId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.ApiManagement/service/%s/workspaces/%s/certificates/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.ServiceName, id.WorkspaceId, id.CertificateId) +} + +// Segments returns a slice of Resource ID Segments which comprise this Workspace Certificate ID +func (id WorkspaceCertificateId) 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("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), + resourceids.StaticSegment("staticService", "service", "service"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), + resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), + resourceids.UserSpecifiedSegment("workspaceId", "workspaceId"), + resourceids.StaticSegment("staticCertificates", "certificates", "certificates"), + resourceids.UserSpecifiedSegment("certificateId", "certificateId"), + } +} + +// String returns a human-readable description of this Workspace Certificate ID +func (id WorkspaceCertificateId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Service Name: %q", id.ServiceName), + fmt.Sprintf("Workspace: %q", id.WorkspaceId), + fmt.Sprintf("Certificate: %q", id.CertificateId), + } + return fmt.Sprintf("Workspace Certificate (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/certificate/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/certificate/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/certificate/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/certificate/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/certificate/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/certificate/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/certificate/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/certificate/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/certificate/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/certificate/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/certificate/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/certificate/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/certificate/method_getentitytag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/certificate/method_getentitytag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/certificate/method_getentitytag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/certificate/method_getentitytag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/certificate/method_listbyservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/certificate/method_listbyservice.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/certificate/method_listbyservice.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/certificate/method_listbyservice.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/certificate/method_refreshsecret.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/certificate/method_refreshsecret.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/certificate/method_refreshsecret.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/certificate/method_refreshsecret.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/certificate/method_workspacecertificatecreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/certificate/method_workspacecertificatecreateorupdate.go new file mode 100644 index 000000000000..74177a034940 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/certificate/method_workspacecertificatecreateorupdate.go @@ -0,0 +1,88 @@ +package certificate + +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 WorkspaceCertificateCreateOrUpdateOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *CertificateContract +} + +type WorkspaceCertificateCreateOrUpdateOperationOptions struct { + IfMatch *string +} + +func DefaultWorkspaceCertificateCreateOrUpdateOperationOptions() WorkspaceCertificateCreateOrUpdateOperationOptions { + return WorkspaceCertificateCreateOrUpdateOperationOptions{} +} + +func (o WorkspaceCertificateCreateOrUpdateOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + if o.IfMatch != nil { + out.Append("If-Match", fmt.Sprintf("%v", *o.IfMatch)) + } + return &out +} + +func (o WorkspaceCertificateCreateOrUpdateOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o WorkspaceCertificateCreateOrUpdateOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + + return &out +} + +// WorkspaceCertificateCreateOrUpdate ... +func (c CertificateClient) WorkspaceCertificateCreateOrUpdate(ctx context.Context, id WorkspaceCertificateId, input CertificateCreateOrUpdateParameters, options WorkspaceCertificateCreateOrUpdateOperationOptions) (result WorkspaceCertificateCreateOrUpdateOperationResponse, 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 CertificateContract + 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/apimanagement/2024-05-01/certificate/method_workspacecertificatedelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/certificate/method_workspacecertificatedelete.go new file mode 100644 index 000000000000..086951d02a21 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/certificate/method_workspacecertificatedelete.go @@ -0,0 +1,77 @@ +package certificate + +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 WorkspaceCertificateDeleteOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +type WorkspaceCertificateDeleteOperationOptions struct { + IfMatch *string +} + +func DefaultWorkspaceCertificateDeleteOperationOptions() WorkspaceCertificateDeleteOperationOptions { + return WorkspaceCertificateDeleteOperationOptions{} +} + +func (o WorkspaceCertificateDeleteOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + if o.IfMatch != nil { + out.Append("If-Match", fmt.Sprintf("%v", *o.IfMatch)) + } + return &out +} + +func (o WorkspaceCertificateDeleteOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o WorkspaceCertificateDeleteOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + + return &out +} + +// WorkspaceCertificateDelete ... +func (c CertificateClient) WorkspaceCertificateDelete(ctx context.Context, id WorkspaceCertificateId, options WorkspaceCertificateDeleteOperationOptions) (result WorkspaceCertificateDeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + 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 + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/certificate/method_workspacecertificateget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/certificate/method_workspacecertificateget.go new file mode 100644 index 000000000000..bff47b037bce --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/certificate/method_workspacecertificateget.go @@ -0,0 +1,53 @@ +package certificate + +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 WorkspaceCertificateGetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *CertificateContract +} + +// WorkspaceCertificateGet ... +func (c CertificateClient) WorkspaceCertificateGet(ctx context.Context, id WorkspaceCertificateId) (result WorkspaceCertificateGetOperationResponse, 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 CertificateContract + 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/apimanagement/2024-05-01/certificate/method_workspacecertificategetentitytag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/certificate/method_workspacecertificategetentitytag.go new file mode 100644 index 000000000000..275fe34b69b6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/certificate/method_workspacecertificategetentitytag.go @@ -0,0 +1,46 @@ +package certificate + +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 WorkspaceCertificateGetEntityTagOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// WorkspaceCertificateGetEntityTag ... +func (c CertificateClient) WorkspaceCertificateGetEntityTag(ctx context.Context, id WorkspaceCertificateId) (result WorkspaceCertificateGetEntityTagOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodHead, + 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/apimanagement/2024-05-01/certificate/method_workspacecertificatelistbyworkspace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/certificate/method_workspacecertificatelistbyworkspace.go new file mode 100644 index 000000000000..06a18734f306 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/certificate/method_workspacecertificatelistbyworkspace.go @@ -0,0 +1,146 @@ +package certificate + +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 WorkspaceCertificateListByWorkspaceOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]CertificateContract +} + +type WorkspaceCertificateListByWorkspaceCompleteResult struct { + LatestHttpResponse *http.Response + Items []CertificateContract +} + +type WorkspaceCertificateListByWorkspaceOperationOptions struct { + Filter *string + IsKeyVaultRefreshFailed *bool + Skip *int64 + Top *int64 +} + +func DefaultWorkspaceCertificateListByWorkspaceOperationOptions() WorkspaceCertificateListByWorkspaceOperationOptions { + return WorkspaceCertificateListByWorkspaceOperationOptions{} +} + +func (o WorkspaceCertificateListByWorkspaceOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o WorkspaceCertificateListByWorkspaceOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o WorkspaceCertificateListByWorkspaceOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Filter != nil { + out.Append("$filter", fmt.Sprintf("%v", *o.Filter)) + } + if o.IsKeyVaultRefreshFailed != nil { + out.Append("isKeyVaultRefreshFailed", fmt.Sprintf("%v", *o.IsKeyVaultRefreshFailed)) + } + if o.Skip != nil { + out.Append("$skip", fmt.Sprintf("%v", *o.Skip)) + } + if o.Top != nil { + out.Append("$top", fmt.Sprintf("%v", *o.Top)) + } + return &out +} + +type WorkspaceCertificateListByWorkspaceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkspaceCertificateListByWorkspaceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// WorkspaceCertificateListByWorkspace ... +func (c CertificateClient) WorkspaceCertificateListByWorkspace(ctx context.Context, id WorkspaceId, options WorkspaceCertificateListByWorkspaceOperationOptions) (result WorkspaceCertificateListByWorkspaceOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + OptionsObject: options, + Pager: &WorkspaceCertificateListByWorkspaceCustomPager{}, + Path: fmt.Sprintf("%s/certificates", 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 *[]CertificateContract `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// WorkspaceCertificateListByWorkspaceComplete retrieves all the results into a single object +func (c CertificateClient) WorkspaceCertificateListByWorkspaceComplete(ctx context.Context, id WorkspaceId, options WorkspaceCertificateListByWorkspaceOperationOptions) (WorkspaceCertificateListByWorkspaceCompleteResult, error) { + return c.WorkspaceCertificateListByWorkspaceCompleteMatchingPredicate(ctx, id, options, CertificateContractOperationPredicate{}) +} + +// WorkspaceCertificateListByWorkspaceCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c CertificateClient) WorkspaceCertificateListByWorkspaceCompleteMatchingPredicate(ctx context.Context, id WorkspaceId, options WorkspaceCertificateListByWorkspaceOperationOptions, predicate CertificateContractOperationPredicate) (result WorkspaceCertificateListByWorkspaceCompleteResult, err error) { + items := make([]CertificateContract, 0) + + resp, err := c.WorkspaceCertificateListByWorkspace(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 = WorkspaceCertificateListByWorkspaceCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/certificate/method_workspacecertificaterefreshsecret.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/certificate/method_workspacecertificaterefreshsecret.go new file mode 100644 index 000000000000..03658e66f7ed --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/certificate/method_workspacecertificaterefreshsecret.go @@ -0,0 +1,54 @@ +package certificate + +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 WorkspaceCertificateRefreshSecretOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *CertificateContract +} + +// WorkspaceCertificateRefreshSecret ... +func (c CertificateClient) WorkspaceCertificateRefreshSecret(ctx context.Context, id WorkspaceCertificateId) (result WorkspaceCertificateRefreshSecretOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/refreshSecret", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + 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 CertificateContract + 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/apimanagement/2023-05-01-preview/certificate/model_certificatecontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/certificate/model_certificatecontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/certificate/model_certificatecontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/certificate/model_certificatecontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/certificate/model_certificatecontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/certificate/model_certificatecontractproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/certificate/model_certificatecontractproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/certificate/model_certificatecontractproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/certificate/model_certificatecreateorupdateparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/certificate/model_certificatecreateorupdateparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/certificate/model_certificatecreateorupdateparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/certificate/model_certificatecreateorupdateparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/certificate/model_certificatecreateorupdateproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/certificate/model_certificatecreateorupdateproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/certificate/model_certificatecreateorupdateproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/certificate/model_certificatecreateorupdateproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/certificate/model_keyvaultcontractcreateproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/certificate/model_keyvaultcontractcreateproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/certificate/model_keyvaultcontractcreateproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/certificate/model_keyvaultcontractcreateproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/certificate/model_keyvaultcontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/certificate/model_keyvaultcontractproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/certificate/model_keyvaultcontractproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/certificate/model_keyvaultcontractproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/certificate/model_keyvaultlastaccessstatuscontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/certificate/model_keyvaultlastaccessstatuscontractproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/certificate/model_keyvaultlastaccessstatuscontractproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/certificate/model_keyvaultlastaccessstatuscontractproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/certificate/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/certificate/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/certificate/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/certificate/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/certificate/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/certificate/version.go similarity index 66% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/certificate/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/certificate/version.go index 571ebf3f0a7f..b09934c56ab8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/certificate/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/certificate/version.go @@ -3,8 +3,8 @@ package certificate // 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-05-01-preview" +const defaultApiVersion = "2024-05-01" func userAgent() string { - return "hashicorp/go-azure-sdk/certificate/2022-08-01" + return "hashicorp/go-azure-sdk/certificate/2024-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/delegationsettings/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/delegationsettings/README.md similarity index 91% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/delegationsettings/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/delegationsettings/README.md index 090d3f434568..52e41686dc96 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/delegationsettings/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/delegationsettings/README.md @@ -1,15 +1,17 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/delegationsettings` Documentation -The `delegationsettings` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2023-05-01-preview`). +## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/delegationsettings` Documentation + +The `delegationsettings` SDK allows for interaction with Azure Resource Manager `apimanagement` (API Version `2024-05-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/apimanagement/2023-05-01-preview/delegationsettings" +import "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/delegationsettings" ``` + ### Client Initialization ```go @@ -17,6 +19,7 @@ client := delegationsettings.NewDelegationSettingsClientWithBaseURI("https://man client.Client.Authorizer = authorizer ``` + ### Example Usage: `DelegationSettingsClient.CreateOrUpdate` ```go @@ -37,6 +40,7 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `DelegationSettingsClient.Get` ```go @@ -52,6 +56,7 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `DelegationSettingsClient.GetEntityTag` ```go @@ -67,6 +72,7 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `DelegationSettingsClient.ListSecrets` ```go @@ -82,6 +88,7 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `DelegationSettingsClient.Update` ```go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/delegationsettings/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/delegationsettings/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/delegationsettings/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/delegationsettings/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/delegationsettings/id_service.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/delegationsettings/id_service.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/delegationsettings/id_service.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/delegationsettings/id_service.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/delegationsettings/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/delegationsettings/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/delegationsettings/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/delegationsettings/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/delegationsettings/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/delegationsettings/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/delegationsettings/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/delegationsettings/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/delegationsettings/method_getentitytag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/delegationsettings/method_getentitytag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/delegationsettings/method_getentitytag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/delegationsettings/method_getentitytag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/delegationsettings/method_listsecrets.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/delegationsettings/method_listsecrets.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/delegationsettings/method_listsecrets.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/delegationsettings/method_listsecrets.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/delegationsettings/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/delegationsettings/method_update.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/delegationsettings/method_update.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/delegationsettings/method_update.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/delegationsettings/model_portaldelegationsettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/delegationsettings/model_portaldelegationsettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/delegationsettings/model_portaldelegationsettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/delegationsettings/model_portaldelegationsettings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/delegationsettings/model_portaldelegationsettingsproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/delegationsettings/model_portaldelegationsettingsproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/delegationsettings/model_portaldelegationsettingsproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/delegationsettings/model_portaldelegationsettingsproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/delegationsettings/model_portalsettingvalidationkeycontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/delegationsettings/model_portalsettingvalidationkeycontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/delegationsettings/model_portalsettingvalidationkeycontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/delegationsettings/model_portalsettingvalidationkeycontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/delegationsettings/model_registrationdelegationsettingsproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/delegationsettings/model_registrationdelegationsettingsproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/delegationsettings/model_registrationdelegationsettingsproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/delegationsettings/model_registrationdelegationsettingsproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/delegationsettings/model_subscriptionsdelegationsettingsproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/delegationsettings/model_subscriptionsdelegationsettingsproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/delegationsettings/model_subscriptionsdelegationsettingsproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/delegationsettings/model_subscriptionsdelegationsettingsproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/delegationsettings/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/delegationsettings/version.go similarity index 66% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/delegationsettings/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/delegationsettings/version.go index 8b42502441ea..e021ff8d7901 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/delegationsettings/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/delegationsettings/version.go @@ -3,8 +3,8 @@ package delegationsettings // 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-05-01-preview" +const defaultApiVersion = "2024-05-01" func userAgent() string { - return "hashicorp/go-azure-sdk/delegationsettings/2022-08-01" + return "hashicorp/go-azure-sdk/delegationsettings/2024-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/deletedservice/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/deletedservice/README.md similarity index 87% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/deletedservice/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/deletedservice/README.md index fa5f11c67db5..d349280c04ee 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/deletedservice/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/deletedservice/README.md @@ -1,6 +1,7 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/deletedservice` Documentation -The `deletedservice` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2023-05-01-preview`). +## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/deletedservice` Documentation + +The `deletedservice` SDK allows for interaction with Azure Resource Manager `apimanagement` (API Version `2024-05-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). @@ -8,9 +9,10 @@ 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/apimanagement/2023-05-01-preview/deletedservice" +import "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/deletedservice" ``` + ### Client Initialization ```go @@ -18,6 +20,7 @@ client := deletedservice.NewDeletedServiceClientWithBaseURI("https://management. client.Client.Authorizer = authorizer ``` + ### Example Usage: `DeletedServiceClient.GetByName` ```go @@ -33,6 +36,7 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `DeletedServiceClient.ListBySubscription` ```go @@ -49,6 +53,7 @@ for _, item := range items { } ``` + ### Example Usage: `DeletedServiceClient.Purge` ```go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/deletedservice/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/deletedservice/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/deletedservice/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/deletedservice/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/deletedservice/id_deletedservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/deletedservice/id_deletedservice.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/deletedservice/id_deletedservice.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/deletedservice/id_deletedservice.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/deletedservice/method_getbyname.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/deletedservice/method_getbyname.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/deletedservice/method_getbyname.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/deletedservice/method_getbyname.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/deletedservice/method_listbysubscription.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/deletedservice/method_listbysubscription.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/deletedservice/method_listbysubscription.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/deletedservice/method_listbysubscription.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/deletedservice/method_purge.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/deletedservice/method_purge.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/deletedservice/method_purge.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/deletedservice/method_purge.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/deletedservice/model_deletedservicecontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/deletedservice/model_deletedservicecontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/deletedservice/model_deletedservicecontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/deletedservice/model_deletedservicecontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/deletedservice/model_deletedservicecontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/deletedservice/model_deletedservicecontractproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/deletedservice/model_deletedservicecontractproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/deletedservice/model_deletedservicecontractproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/deletedservice/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/deletedservice/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/deletedservice/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/deletedservice/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/deletedservice/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/deletedservice/version.go similarity index 66% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/deletedservice/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/deletedservice/version.go index 6cf793d935b3..3b5b73d116f3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/deletedservice/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/deletedservice/version.go @@ -3,8 +3,8 @@ package deletedservice // 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-05-01-preview" +const defaultApiVersion = "2024-05-01" func userAgent() string { - return "hashicorp/go-azure-sdk/deletedservice/2022-08-01" + return "hashicorp/go-azure-sdk/deletedservice/2024-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/diagnostic/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/diagnostic/README.md new file mode 100644 index 000000000000..2d90deb7f352 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/diagnostic/README.md @@ -0,0 +1,234 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/diagnostic` Documentation + +The `diagnostic` SDK allows for interaction with Azure Resource Manager `apimanagement` (API Version `2024-05-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/apimanagement/2024-05-01/diagnostic" +``` + + +### Client Initialization + +```go +client := diagnostic.NewDiagnosticClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `DiagnosticClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := diagnostic.NewDiagnosticID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "diagnosticId") + +payload := diagnostic.DiagnosticContract{ + // ... +} + + +read, err := client.CreateOrUpdate(ctx, id, payload, diagnostic.DefaultCreateOrUpdateOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `DiagnosticClient.Delete` + +```go +ctx := context.TODO() +id := diagnostic.NewDiagnosticID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "diagnosticId") + +read, err := client.Delete(ctx, id, diagnostic.DefaultDeleteOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `DiagnosticClient.Get` + +```go +ctx := context.TODO() +id := diagnostic.NewDiagnosticID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "diagnosticId") + +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: `DiagnosticClient.GetEntityTag` + +```go +ctx := context.TODO() +id := diagnostic.NewDiagnosticID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "diagnosticId") + +read, err := client.GetEntityTag(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `DiagnosticClient.ListByService` + +```go +ctx := context.TODO() +id := diagnostic.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") + +// alternatively `client.ListByService(ctx, id, diagnostic.DefaultListByServiceOperationOptions())` can be used to do batched pagination +items, err := client.ListByServiceComplete(ctx, id, diagnostic.DefaultListByServiceOperationOptions()) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `DiagnosticClient.Update` + +```go +ctx := context.TODO() +id := diagnostic.NewDiagnosticID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "diagnosticId") + +payload := diagnostic.DiagnosticContract{ + // ... +} + + +read, err := client.Update(ctx, id, payload, diagnostic.DefaultUpdateOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `DiagnosticClient.WorkspaceDiagnosticCreateOrUpdate` + +```go +ctx := context.TODO() +id := diagnostic.NewWorkspaceDiagnosticID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "diagnosticId") + +payload := diagnostic.DiagnosticContract{ + // ... +} + + +read, err := client.WorkspaceDiagnosticCreateOrUpdate(ctx, id, payload, diagnostic.DefaultWorkspaceDiagnosticCreateOrUpdateOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `DiagnosticClient.WorkspaceDiagnosticDelete` + +```go +ctx := context.TODO() +id := diagnostic.NewWorkspaceDiagnosticID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "diagnosticId") + +read, err := client.WorkspaceDiagnosticDelete(ctx, id, diagnostic.DefaultWorkspaceDiagnosticDeleteOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `DiagnosticClient.WorkspaceDiagnosticGet` + +```go +ctx := context.TODO() +id := diagnostic.NewWorkspaceDiagnosticID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "diagnosticId") + +read, err := client.WorkspaceDiagnosticGet(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `DiagnosticClient.WorkspaceDiagnosticGetEntityTag` + +```go +ctx := context.TODO() +id := diagnostic.NewWorkspaceDiagnosticID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "diagnosticId") + +read, err := client.WorkspaceDiagnosticGetEntityTag(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `DiagnosticClient.WorkspaceDiagnosticListByWorkspace` + +```go +ctx := context.TODO() +id := diagnostic.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId") + +// alternatively `client.WorkspaceDiagnosticListByWorkspace(ctx, id, diagnostic.DefaultWorkspaceDiagnosticListByWorkspaceOperationOptions())` can be used to do batched pagination +items, err := client.WorkspaceDiagnosticListByWorkspaceComplete(ctx, id, diagnostic.DefaultWorkspaceDiagnosticListByWorkspaceOperationOptions()) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `DiagnosticClient.WorkspaceDiagnosticUpdate` + +```go +ctx := context.TODO() +id := diagnostic.NewWorkspaceDiagnosticID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "diagnosticId") + +payload := diagnostic.DiagnosticUpdateContract{ + // ... +} + + +read, err := client.WorkspaceDiagnosticUpdate(ctx, id, payload, diagnostic.DefaultWorkspaceDiagnosticUpdateOperationOptions()) +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/apimanagement/2023-05-01-preview/diagnostic/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/diagnostic/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/diagnostic/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/diagnostic/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/diagnostic/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/diagnostic/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/diagnostic/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/diagnostic/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/diagnostic/id_diagnostic.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/diagnostic/id_diagnostic.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/diagnostic/id_diagnostic.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/diagnostic/id_diagnostic.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/diagnostic/id_service.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/diagnostic/id_service.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/diagnostic/id_service.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/diagnostic/id_service.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/diagnostic/id_workspace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/diagnostic/id_workspace.go new file mode 100644 index 000000000000..752aadb450e6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/diagnostic/id_workspace.go @@ -0,0 +1,139 @@ +package diagnostic + +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(&WorkspaceId{}) +} + +var _ resourceids.ResourceId = &WorkspaceId{} + +// WorkspaceId is a struct representing the Resource ID for a Workspace +type WorkspaceId struct { + SubscriptionId string + ResourceGroupName string + ServiceName string + WorkspaceId string +} + +// NewWorkspaceID returns a new WorkspaceId struct +func NewWorkspaceID(subscriptionId string, resourceGroupName string, serviceName string, workspaceId string) WorkspaceId { + return WorkspaceId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + ServiceName: serviceName, + WorkspaceId: workspaceId, + } +} + +// ParseWorkspaceID parses 'input' into a WorkspaceId +func ParseWorkspaceID(input string) (*WorkspaceId, error) { + parser := resourceids.NewParserFromResourceIdType(&WorkspaceId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := WorkspaceId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseWorkspaceIDInsensitively parses 'input' case-insensitively into a WorkspaceId +// note: this method should only be used for API response data and not user input +func ParseWorkspaceIDInsensitively(input string) (*WorkspaceId, error) { + parser := resourceids.NewParserFromResourceIdType(&WorkspaceId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := WorkspaceId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *WorkspaceId) 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.ServiceName, ok = input.Parsed["serviceName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "serviceName", input) + } + + if id.WorkspaceId, ok = input.Parsed["workspaceId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "workspaceId", input) + } + + return nil +} + +// ValidateWorkspaceID checks that 'input' can be parsed as a Workspace ID +func ValidateWorkspaceID(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 := ParseWorkspaceID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Workspace ID +func (id WorkspaceId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.ApiManagement/service/%s/workspaces/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.ServiceName, id.WorkspaceId) +} + +// Segments returns a slice of Resource ID Segments which comprise this Workspace ID +func (id WorkspaceId) 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("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), + resourceids.StaticSegment("staticService", "service", "service"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), + resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), + resourceids.UserSpecifiedSegment("workspaceId", "workspaceId"), + } +} + +// String returns a human-readable description of this Workspace ID +func (id WorkspaceId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Service Name: %q", id.ServiceName), + fmt.Sprintf("Workspace: %q", id.WorkspaceId), + } + return fmt.Sprintf("Workspace (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/diagnostic/id_workspacediagnostic.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/diagnostic/id_workspacediagnostic.go new file mode 100644 index 000000000000..80a1a0df07e2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/diagnostic/id_workspacediagnostic.go @@ -0,0 +1,148 @@ +package diagnostic + +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(&WorkspaceDiagnosticId{}) +} + +var _ resourceids.ResourceId = &WorkspaceDiagnosticId{} + +// WorkspaceDiagnosticId is a struct representing the Resource ID for a Workspace Diagnostic +type WorkspaceDiagnosticId struct { + SubscriptionId string + ResourceGroupName string + ServiceName string + WorkspaceId string + DiagnosticId string +} + +// NewWorkspaceDiagnosticID returns a new WorkspaceDiagnosticId struct +func NewWorkspaceDiagnosticID(subscriptionId string, resourceGroupName string, serviceName string, workspaceId string, diagnosticId string) WorkspaceDiagnosticId { + return WorkspaceDiagnosticId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + ServiceName: serviceName, + WorkspaceId: workspaceId, + DiagnosticId: diagnosticId, + } +} + +// ParseWorkspaceDiagnosticID parses 'input' into a WorkspaceDiagnosticId +func ParseWorkspaceDiagnosticID(input string) (*WorkspaceDiagnosticId, error) { + parser := resourceids.NewParserFromResourceIdType(&WorkspaceDiagnosticId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := WorkspaceDiagnosticId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseWorkspaceDiagnosticIDInsensitively parses 'input' case-insensitively into a WorkspaceDiagnosticId +// note: this method should only be used for API response data and not user input +func ParseWorkspaceDiagnosticIDInsensitively(input string) (*WorkspaceDiagnosticId, error) { + parser := resourceids.NewParserFromResourceIdType(&WorkspaceDiagnosticId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := WorkspaceDiagnosticId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *WorkspaceDiagnosticId) 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.ServiceName, ok = input.Parsed["serviceName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "serviceName", input) + } + + if id.WorkspaceId, ok = input.Parsed["workspaceId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "workspaceId", input) + } + + if id.DiagnosticId, ok = input.Parsed["diagnosticId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "diagnosticId", input) + } + + return nil +} + +// ValidateWorkspaceDiagnosticID checks that 'input' can be parsed as a Workspace Diagnostic ID +func ValidateWorkspaceDiagnosticID(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 := ParseWorkspaceDiagnosticID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Workspace Diagnostic ID +func (id WorkspaceDiagnosticId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.ApiManagement/service/%s/workspaces/%s/diagnostics/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.ServiceName, id.WorkspaceId, id.DiagnosticId) +} + +// Segments returns a slice of Resource ID Segments which comprise this Workspace Diagnostic ID +func (id WorkspaceDiagnosticId) 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("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), + resourceids.StaticSegment("staticService", "service", "service"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), + resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), + resourceids.UserSpecifiedSegment("workspaceId", "workspaceId"), + resourceids.StaticSegment("staticDiagnostics", "diagnostics", "diagnostics"), + resourceids.UserSpecifiedSegment("diagnosticId", "diagnosticId"), + } +} + +// String returns a human-readable description of this Workspace Diagnostic ID +func (id WorkspaceDiagnosticId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Service Name: %q", id.ServiceName), + fmt.Sprintf("Workspace: %q", id.WorkspaceId), + fmt.Sprintf("Diagnostic: %q", id.DiagnosticId), + } + return fmt.Sprintf("Workspace Diagnostic (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/diagnostic/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/diagnostic/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/diagnostic/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/diagnostic/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/diagnostic/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/diagnostic/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/diagnostic/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/diagnostic/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/diagnostic/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/diagnostic/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/diagnostic/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/diagnostic/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/diagnostic/method_getentitytag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/diagnostic/method_getentitytag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/diagnostic/method_getentitytag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/diagnostic/method_getentitytag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/diagnostic/method_listbyservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/diagnostic/method_listbyservice.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/diagnostic/method_listbyservice.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/diagnostic/method_listbyservice.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/diagnostic/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/diagnostic/method_update.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/diagnostic/method_update.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/diagnostic/method_update.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/diagnostic/method_workspacediagnosticcreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/diagnostic/method_workspacediagnosticcreateorupdate.go new file mode 100644 index 000000000000..5ca3fc7fe9e9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/diagnostic/method_workspacediagnosticcreateorupdate.go @@ -0,0 +1,88 @@ +package diagnostic + +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 WorkspaceDiagnosticCreateOrUpdateOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *DiagnosticContract +} + +type WorkspaceDiagnosticCreateOrUpdateOperationOptions struct { + IfMatch *string +} + +func DefaultWorkspaceDiagnosticCreateOrUpdateOperationOptions() WorkspaceDiagnosticCreateOrUpdateOperationOptions { + return WorkspaceDiagnosticCreateOrUpdateOperationOptions{} +} + +func (o WorkspaceDiagnosticCreateOrUpdateOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + if o.IfMatch != nil { + out.Append("If-Match", fmt.Sprintf("%v", *o.IfMatch)) + } + return &out +} + +func (o WorkspaceDiagnosticCreateOrUpdateOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o WorkspaceDiagnosticCreateOrUpdateOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + + return &out +} + +// WorkspaceDiagnosticCreateOrUpdate ... +func (c DiagnosticClient) WorkspaceDiagnosticCreateOrUpdate(ctx context.Context, id WorkspaceDiagnosticId, input DiagnosticContract, options WorkspaceDiagnosticCreateOrUpdateOperationOptions) (result WorkspaceDiagnosticCreateOrUpdateOperationResponse, 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 DiagnosticContract + 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/apimanagement/2024-05-01/diagnostic/method_workspacediagnosticdelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/diagnostic/method_workspacediagnosticdelete.go new file mode 100644 index 000000000000..21887fc54504 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/diagnostic/method_workspacediagnosticdelete.go @@ -0,0 +1,77 @@ +package diagnostic + +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 WorkspaceDiagnosticDeleteOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +type WorkspaceDiagnosticDeleteOperationOptions struct { + IfMatch *string +} + +func DefaultWorkspaceDiagnosticDeleteOperationOptions() WorkspaceDiagnosticDeleteOperationOptions { + return WorkspaceDiagnosticDeleteOperationOptions{} +} + +func (o WorkspaceDiagnosticDeleteOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + if o.IfMatch != nil { + out.Append("If-Match", fmt.Sprintf("%v", *o.IfMatch)) + } + return &out +} + +func (o WorkspaceDiagnosticDeleteOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o WorkspaceDiagnosticDeleteOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + + return &out +} + +// WorkspaceDiagnosticDelete ... +func (c DiagnosticClient) WorkspaceDiagnosticDelete(ctx context.Context, id WorkspaceDiagnosticId, options WorkspaceDiagnosticDeleteOperationOptions) (result WorkspaceDiagnosticDeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + 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 + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/diagnostic/method_workspacediagnosticget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/diagnostic/method_workspacediagnosticget.go new file mode 100644 index 000000000000..dd6f8c67869a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/diagnostic/method_workspacediagnosticget.go @@ -0,0 +1,53 @@ +package diagnostic + +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 WorkspaceDiagnosticGetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *DiagnosticContract +} + +// WorkspaceDiagnosticGet ... +func (c DiagnosticClient) WorkspaceDiagnosticGet(ctx context.Context, id WorkspaceDiagnosticId) (result WorkspaceDiagnosticGetOperationResponse, 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 DiagnosticContract + 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/apimanagement/2024-05-01/diagnostic/method_workspacediagnosticgetentitytag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/diagnostic/method_workspacediagnosticgetentitytag.go new file mode 100644 index 000000000000..11e39aaa66cd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/diagnostic/method_workspacediagnosticgetentitytag.go @@ -0,0 +1,46 @@ +package diagnostic + +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 WorkspaceDiagnosticGetEntityTagOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// WorkspaceDiagnosticGetEntityTag ... +func (c DiagnosticClient) WorkspaceDiagnosticGetEntityTag(ctx context.Context, id WorkspaceDiagnosticId) (result WorkspaceDiagnosticGetEntityTagOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodHead, + 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/apimanagement/2024-05-01/diagnostic/method_workspacediagnosticlistbyworkspace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/diagnostic/method_workspacediagnosticlistbyworkspace.go new file mode 100644 index 000000000000..46519b466444 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/diagnostic/method_workspacediagnosticlistbyworkspace.go @@ -0,0 +1,142 @@ +package diagnostic + +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 WorkspaceDiagnosticListByWorkspaceOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]DiagnosticContract +} + +type WorkspaceDiagnosticListByWorkspaceCompleteResult struct { + LatestHttpResponse *http.Response + Items []DiagnosticContract +} + +type WorkspaceDiagnosticListByWorkspaceOperationOptions struct { + Filter *string + Skip *int64 + Top *int64 +} + +func DefaultWorkspaceDiagnosticListByWorkspaceOperationOptions() WorkspaceDiagnosticListByWorkspaceOperationOptions { + return WorkspaceDiagnosticListByWorkspaceOperationOptions{} +} + +func (o WorkspaceDiagnosticListByWorkspaceOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o WorkspaceDiagnosticListByWorkspaceOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o WorkspaceDiagnosticListByWorkspaceOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Filter != nil { + out.Append("$filter", fmt.Sprintf("%v", *o.Filter)) + } + if o.Skip != nil { + out.Append("$skip", fmt.Sprintf("%v", *o.Skip)) + } + if o.Top != nil { + out.Append("$top", fmt.Sprintf("%v", *o.Top)) + } + return &out +} + +type WorkspaceDiagnosticListByWorkspaceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkspaceDiagnosticListByWorkspaceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// WorkspaceDiagnosticListByWorkspace ... +func (c DiagnosticClient) WorkspaceDiagnosticListByWorkspace(ctx context.Context, id WorkspaceId, options WorkspaceDiagnosticListByWorkspaceOperationOptions) (result WorkspaceDiagnosticListByWorkspaceOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + OptionsObject: options, + Pager: &WorkspaceDiagnosticListByWorkspaceCustomPager{}, + Path: fmt.Sprintf("%s/diagnostics", 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 *[]DiagnosticContract `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// WorkspaceDiagnosticListByWorkspaceComplete retrieves all the results into a single object +func (c DiagnosticClient) WorkspaceDiagnosticListByWorkspaceComplete(ctx context.Context, id WorkspaceId, options WorkspaceDiagnosticListByWorkspaceOperationOptions) (WorkspaceDiagnosticListByWorkspaceCompleteResult, error) { + return c.WorkspaceDiagnosticListByWorkspaceCompleteMatchingPredicate(ctx, id, options, DiagnosticContractOperationPredicate{}) +} + +// WorkspaceDiagnosticListByWorkspaceCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c DiagnosticClient) WorkspaceDiagnosticListByWorkspaceCompleteMatchingPredicate(ctx context.Context, id WorkspaceId, options WorkspaceDiagnosticListByWorkspaceOperationOptions, predicate DiagnosticContractOperationPredicate) (result WorkspaceDiagnosticListByWorkspaceCompleteResult, err error) { + items := make([]DiagnosticContract, 0) + + resp, err := c.WorkspaceDiagnosticListByWorkspace(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 = WorkspaceDiagnosticListByWorkspaceCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/diagnostic/method_workspacediagnosticupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/diagnostic/method_workspacediagnosticupdate.go new file mode 100644 index 000000000000..973ef75f2ebe --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/diagnostic/method_workspacediagnosticupdate.go @@ -0,0 +1,87 @@ +package diagnostic + +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 WorkspaceDiagnosticUpdateOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *DiagnosticContract +} + +type WorkspaceDiagnosticUpdateOperationOptions struct { + IfMatch *string +} + +func DefaultWorkspaceDiagnosticUpdateOperationOptions() WorkspaceDiagnosticUpdateOperationOptions { + return WorkspaceDiagnosticUpdateOperationOptions{} +} + +func (o WorkspaceDiagnosticUpdateOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + if o.IfMatch != nil { + out.Append("If-Match", fmt.Sprintf("%v", *o.IfMatch)) + } + return &out +} + +func (o WorkspaceDiagnosticUpdateOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o WorkspaceDiagnosticUpdateOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + + return &out +} + +// WorkspaceDiagnosticUpdate ... +func (c DiagnosticClient) WorkspaceDiagnosticUpdate(ctx context.Context, id WorkspaceDiagnosticId, input DiagnosticUpdateContract, options WorkspaceDiagnosticUpdateOperationOptions) (result WorkspaceDiagnosticUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPatch, + 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 DiagnosticContract + 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/apimanagement/2023-05-01-preview/diagnostic/model_bodydiagnosticsettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/diagnostic/model_bodydiagnosticsettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/diagnostic/model_bodydiagnosticsettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/diagnostic/model_bodydiagnosticsettings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/diagnostic/model_datamasking.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/diagnostic/model_datamasking.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/diagnostic/model_datamasking.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/diagnostic/model_datamasking.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/diagnostic/model_datamaskingentity.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/diagnostic/model_datamaskingentity.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/diagnostic/model_datamaskingentity.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/diagnostic/model_datamaskingentity.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/diagnostic/model_diagnosticcontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/diagnostic/model_diagnosticcontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/diagnostic/model_diagnosticcontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/diagnostic/model_diagnosticcontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/diagnostic/model_diagnosticcontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/diagnostic/model_diagnosticcontractproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/diagnostic/model_diagnosticcontractproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/diagnostic/model_diagnosticcontractproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/diagnostic/model_diagnosticcontractupdateproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/diagnostic/model_diagnosticcontractupdateproperties.go new file mode 100644 index 000000000000..debae2a8af0f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/diagnostic/model_diagnosticcontractupdateproperties.go @@ -0,0 +1,17 @@ +package diagnostic + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DiagnosticContractUpdateProperties struct { + AlwaysLog *AlwaysLog `json:"alwaysLog,omitempty"` + Backend *PipelineDiagnosticSettings `json:"backend,omitempty"` + Frontend *PipelineDiagnosticSettings `json:"frontend,omitempty"` + HTTPCorrelationProtocol *HTTPCorrelationProtocol `json:"httpCorrelationProtocol,omitempty"` + LogClientIP *bool `json:"logClientIp,omitempty"` + LoggerId *string `json:"loggerId,omitempty"` + Metrics *bool `json:"metrics,omitempty"` + OperationNameFormat *OperationNameFormat `json:"operationNameFormat,omitempty"` + Sampling *SamplingSettings `json:"sampling,omitempty"` + Verbosity *Verbosity `json:"verbosity,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/diagnostic/model_diagnosticupdatecontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/diagnostic/model_diagnosticupdatecontract.go new file mode 100644 index 000000000000..615cafe20f03 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/diagnostic/model_diagnosticupdatecontract.go @@ -0,0 +1,11 @@ +package diagnostic + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DiagnosticUpdateContract struct { + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *DiagnosticContractUpdateProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/diagnostic/model_httpmessagediagnostic.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/diagnostic/model_httpmessagediagnostic.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/diagnostic/model_httpmessagediagnostic.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/diagnostic/model_httpmessagediagnostic.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/diagnostic/model_pipelinediagnosticsettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/diagnostic/model_pipelinediagnosticsettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/diagnostic/model_pipelinediagnosticsettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/diagnostic/model_pipelinediagnosticsettings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/diagnostic/model_samplingsettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/diagnostic/model_samplingsettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/diagnostic/model_samplingsettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/diagnostic/model_samplingsettings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/diagnostic/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/diagnostic/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/diagnostic/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/diagnostic/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/diagnostic/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/diagnostic/version.go similarity index 66% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/diagnostic/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/diagnostic/version.go index aa78d1178e7b..c56a5178ea21 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/diagnostic/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/diagnostic/version.go @@ -3,8 +3,8 @@ package diagnostic // 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-05-01-preview" +const defaultApiVersion = "2024-05-01" func userAgent() string { - return "hashicorp/go-azure-sdk/diagnostic/2022-08-01" + return "hashicorp/go-azure-sdk/diagnostic/2024-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/emailtemplates/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/emailtemplates/README.md similarity index 92% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/emailtemplates/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/emailtemplates/README.md index b65fa9ca71cb..ea199a9e5dee 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/emailtemplates/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/emailtemplates/README.md @@ -1,15 +1,17 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/emailtemplates` Documentation -The `emailtemplates` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2023-05-01-preview`). +## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/emailtemplates` Documentation + +The `emailtemplates` SDK allows for interaction with Azure Resource Manager `apimanagement` (API Version `2024-05-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/apimanagement/2023-05-01-preview/emailtemplates" +import "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/emailtemplates" ``` + ### Client Initialization ```go @@ -17,6 +19,7 @@ client := emailtemplates.NewEmailTemplatesClientWithBaseURI("https://management. client.Client.Authorizer = authorizer ``` + ### Example Usage: `EmailTemplatesClient.EmailTemplateCreateOrUpdate` ```go @@ -37,6 +40,7 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `EmailTemplatesClient.EmailTemplateDelete` ```go @@ -52,6 +56,7 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `EmailTemplatesClient.EmailTemplateGet` ```go @@ -67,6 +72,7 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `EmailTemplatesClient.EmailTemplateGetEntityTag` ```go @@ -82,6 +88,7 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `EmailTemplatesClient.EmailTemplateUpdate` ```go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/emailtemplates/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/emailtemplates/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/emailtemplates/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/emailtemplates/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/emailtemplates/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/emailtemplates/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/emailtemplates/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/emailtemplates/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/emailtemplates/id_template.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/emailtemplates/id_template.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/emailtemplates/id_template.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/emailtemplates/id_template.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/emailtemplates/method_emailtemplatecreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/emailtemplates/method_emailtemplatecreateorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/emailtemplates/method_emailtemplatecreateorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/emailtemplates/method_emailtemplatecreateorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/emailtemplates/method_emailtemplatedelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/emailtemplates/method_emailtemplatedelete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/emailtemplates/method_emailtemplatedelete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/emailtemplates/method_emailtemplatedelete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/emailtemplates/method_emailtemplateget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/emailtemplates/method_emailtemplateget.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/emailtemplates/method_emailtemplateget.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/emailtemplates/method_emailtemplateget.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/emailtemplates/method_emailtemplategetentitytag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/emailtemplates/method_emailtemplategetentitytag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/emailtemplates/method_emailtemplategetentitytag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/emailtemplates/method_emailtemplategetentitytag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/emailtemplates/method_emailtemplateupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/emailtemplates/method_emailtemplateupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/emailtemplates/method_emailtemplateupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/emailtemplates/method_emailtemplateupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/emailtemplates/model_emailtemplatecontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/emailtemplates/model_emailtemplatecontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/emailtemplates/model_emailtemplatecontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/emailtemplates/model_emailtemplatecontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/emailtemplates/model_emailtemplatecontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/emailtemplates/model_emailtemplatecontractproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/emailtemplates/model_emailtemplatecontractproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/emailtemplates/model_emailtemplatecontractproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/emailtemplates/model_emailtemplateparameterscontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/emailtemplates/model_emailtemplateparameterscontractproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/emailtemplates/model_emailtemplateparameterscontractproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/emailtemplates/model_emailtemplateparameterscontractproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/emailtemplates/model_emailtemplateupdateparameterproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/emailtemplates/model_emailtemplateupdateparameterproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/emailtemplates/model_emailtemplateupdateparameterproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/emailtemplates/model_emailtemplateupdateparameterproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/emailtemplates/model_emailtemplateupdateparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/emailtemplates/model_emailtemplateupdateparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/emailtemplates/model_emailtemplateupdateparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/emailtemplates/model_emailtemplateupdateparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/emailtemplates/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/emailtemplates/version.go similarity index 66% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/emailtemplates/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/emailtemplates/version.go index a8cbf2fef8cb..bb21c0e35ea9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/emailtemplates/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/emailtemplates/version.go @@ -3,8 +3,8 @@ package emailtemplates // 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-05-01-preview" +const defaultApiVersion = "2024-05-01" func userAgent() string { - return "hashicorp/go-azure-sdk/emailtemplates/2022-08-01" + return "hashicorp/go-azure-sdk/emailtemplates/2024-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gateway/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gateway/README.md similarity index 74% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gateway/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gateway/README.md index 5678e04b6b41..f0a897b61b66 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gateway/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gateway/README.md @@ -1,15 +1,17 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gateway` Documentation -The `gateway` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2023-05-01-preview`). +## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gateway` Documentation + +The `gateway` SDK allows for interaction with Azure Resource Manager `apimanagement` (API Version `2024-05-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/apimanagement/2023-05-01-preview/gateway" +import "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gateway" ``` + ### Client Initialization ```go @@ -17,11 +19,12 @@ client := gateway.NewGatewayClientWithBaseURI("https://management.azure.com") client.Client.Authorizer = authorizer ``` + ### Example Usage: `GatewayClient.CreateOrUpdate` ```go ctx := context.TODO() -id := gateway.NewGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "gatewayId") +id := gateway.NewServiceGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "gatewayId") payload := gateway.GatewayContract{ // ... @@ -37,11 +40,12 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `GatewayClient.Delete` ```go ctx := context.TODO() -id := gateway.NewGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "gatewayId") +id := gateway.NewServiceGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "gatewayId") read, err := client.Delete(ctx, id, gateway.DefaultDeleteOperationOptions()) if err != nil { @@ -52,11 +56,12 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `GatewayClient.Get` ```go ctx := context.TODO() -id := gateway.NewGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "gatewayId") +id := gateway.NewServiceGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "gatewayId") read, err := client.Get(ctx, id) if err != nil { @@ -67,11 +72,12 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `GatewayClient.GetEntityTag` ```go ctx := context.TODO() -id := gateway.NewGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "gatewayId") +id := gateway.NewServiceGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "gatewayId") read, err := client.GetEntityTag(ctx, id) if err != nil { @@ -82,6 +88,7 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `GatewayClient.ListByService` ```go @@ -98,11 +105,12 @@ for _, item := range items { } ``` + ### Example Usage: `GatewayClient.Update` ```go ctx := context.TODO() -id := gateway.NewGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "gatewayId") +id := gateway.NewServiceGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "gatewayId") payload := gateway.GatewayContract{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gateway/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gateway/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gateway/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gateway/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gateway/id_service.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gateway/id_service.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gateway/id_service.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gateway/id_service.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gateway/id_gateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gateway/id_servicegateway.go similarity index 66% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gateway/id_gateway.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gateway/id_servicegateway.go index 57d27e3b6a0b..0b4d5857082d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gateway/id_gateway.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gateway/id_servicegateway.go @@ -12,22 +12,22 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. func init() { - recaser.RegisterResourceId(&GatewayId{}) + recaser.RegisterResourceId(&ServiceGatewayId{}) } -var _ resourceids.ResourceId = &GatewayId{} +var _ resourceids.ResourceId = &ServiceGatewayId{} -// GatewayId is a struct representing the Resource ID for a Gateway -type GatewayId struct { +// ServiceGatewayId is a struct representing the Resource ID for a Service Gateway +type ServiceGatewayId struct { SubscriptionId string ResourceGroupName string ServiceName string GatewayId string } -// NewGatewayID returns a new GatewayId struct -func NewGatewayID(subscriptionId string, resourceGroupName string, serviceName string, gatewayId string) GatewayId { - return GatewayId{ +// NewServiceGatewayID returns a new ServiceGatewayId struct +func NewServiceGatewayID(subscriptionId string, resourceGroupName string, serviceName string, gatewayId string) ServiceGatewayId { + return ServiceGatewayId{ SubscriptionId: subscriptionId, ResourceGroupName: resourceGroupName, ServiceName: serviceName, @@ -35,15 +35,15 @@ func NewGatewayID(subscriptionId string, resourceGroupName string, serviceName s } } -// ParseGatewayID parses 'input' into a GatewayId -func ParseGatewayID(input string) (*GatewayId, error) { - parser := resourceids.NewParserFromResourceIdType(&GatewayId{}) +// ParseServiceGatewayID parses 'input' into a ServiceGatewayId +func ParseServiceGatewayID(input string) (*ServiceGatewayId, error) { + parser := resourceids.NewParserFromResourceIdType(&ServiceGatewayId{}) parsed, err := parser.Parse(input, false) if err != nil { return nil, fmt.Errorf("parsing %q: %+v", input, err) } - id := GatewayId{} + id := ServiceGatewayId{} if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -51,16 +51,16 @@ func ParseGatewayID(input string) (*GatewayId, error) { return &id, nil } -// ParseGatewayIDInsensitively parses 'input' case-insensitively into a GatewayId +// ParseServiceGatewayIDInsensitively parses 'input' case-insensitively into a ServiceGatewayId // note: this method should only be used for API response data and not user input -func ParseGatewayIDInsensitively(input string) (*GatewayId, error) { - parser := resourceids.NewParserFromResourceIdType(&GatewayId{}) +func ParseServiceGatewayIDInsensitively(input string) (*ServiceGatewayId, error) { + parser := resourceids.NewParserFromResourceIdType(&ServiceGatewayId{}) parsed, err := parser.Parse(input, true) if err != nil { return nil, fmt.Errorf("parsing %q: %+v", input, err) } - id := GatewayId{} + id := ServiceGatewayId{} if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -68,7 +68,7 @@ func ParseGatewayIDInsensitively(input string) (*GatewayId, error) { return &id, nil } -func (id *GatewayId) FromParseResult(input resourceids.ParseResult) error { +func (id *ServiceGatewayId) FromParseResult(input resourceids.ParseResult) error { var ok bool if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { @@ -90,29 +90,29 @@ func (id *GatewayId) FromParseResult(input resourceids.ParseResult) error { return nil } -// ValidateGatewayID checks that 'input' can be parsed as a Gateway ID -func ValidateGatewayID(input interface{}, key string) (warnings []string, errors []error) { +// ValidateServiceGatewayID checks that 'input' can be parsed as a Service Gateway ID +func ValidateServiceGatewayID(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 := ParseGatewayID(v); err != nil { + if _, err := ParseServiceGatewayID(v); err != nil { errors = append(errors, err) } return } -// ID returns the formatted Gateway ID -func (id GatewayId) ID() string { +// ID returns the formatted Service Gateway ID +func (id ServiceGatewayId) ID() string { fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.ApiManagement/service/%s/gateways/%s" return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.ServiceName, id.GatewayId) } -// Segments returns a slice of Resource ID Segments which comprise this Gateway ID -func (id GatewayId) Segments() []resourceids.Segment { +// Segments returns a slice of Resource ID Segments which comprise this Service Gateway ID +func (id ServiceGatewayId) Segments() []resourceids.Segment { return []resourceids.Segment{ resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), @@ -127,13 +127,13 @@ func (id GatewayId) Segments() []resourceids.Segment { } } -// String returns a human-readable description of this Gateway ID -func (id GatewayId) String() string { +// String returns a human-readable description of this Service Gateway ID +func (id ServiceGatewayId) String() string { components := []string{ fmt.Sprintf("Subscription: %q", id.SubscriptionId), fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), fmt.Sprintf("Service Name: %q", id.ServiceName), fmt.Sprintf("Gateway: %q", id.GatewayId), } - return fmt.Sprintf("Gateway (%s)", strings.Join(components, "\n")) + return fmt.Sprintf("Service Gateway (%s)", strings.Join(components, "\n")) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gateway/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gateway/method_createorupdate.go similarity index 89% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gateway/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gateway/method_createorupdate.go index 4116eea8b190..8e9703e2f34a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gateway/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gateway/method_createorupdate.go @@ -47,7 +47,7 @@ func (o CreateOrUpdateOperationOptions) ToQuery() *client.QueryParams { } // CreateOrUpdate ... -func (c GatewayClient) CreateOrUpdate(ctx context.Context, id GatewayId, input GatewayContract, options CreateOrUpdateOperationOptions) (result CreateOrUpdateOperationResponse, err error) { +func (c GatewayClient) CreateOrUpdate(ctx context.Context, id ServiceGatewayId, input GatewayContract, options CreateOrUpdateOperationOptions) (result CreateOrUpdateOperationResponse, err error) { opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gateway/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gateway/method_delete.go similarity index 90% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gateway/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gateway/method_delete.go index cfd3d12845ff..5885ae3e66f4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gateway/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gateway/method_delete.go @@ -46,7 +46,7 @@ func (o DeleteOperationOptions) ToQuery() *client.QueryParams { } // Delete ... -func (c GatewayClient) Delete(ctx context.Context, id GatewayId, options DeleteOperationOptions) (result DeleteOperationResponse, err error) { +func (c GatewayClient) Delete(ctx context.Context, id ServiceGatewayId, options DeleteOperationOptions) (result DeleteOperationResponse, err error) { opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gateway/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gateway/method_get.go similarity index 89% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gateway/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gateway/method_get.go index 24f881c912fe..deed235a6f3b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gateway/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gateway/method_get.go @@ -18,7 +18,7 @@ type GetOperationResponse struct { } // Get ... -func (c GatewayClient) Get(ctx context.Context, id GatewayId) (result GetOperationResponse, err error) { +func (c GatewayClient) Get(ctx context.Context, id ServiceGatewayId) (result GetOperationResponse, err error) { opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gateway/method_getentitytag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gateway/method_getentitytag.go similarity index 87% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gateway/method_getentitytag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gateway/method_getentitytag.go index 34c8cd8439b3..dacdcc9e20a9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gateway/method_getentitytag.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gateway/method_getentitytag.go @@ -17,7 +17,7 @@ type GetEntityTagOperationResponse struct { } // GetEntityTag ... -func (c GatewayClient) GetEntityTag(ctx context.Context, id GatewayId) (result GetEntityTagOperationResponse, err error) { +func (c GatewayClient) GetEntityTag(ctx context.Context, id ServiceGatewayId) (result GetEntityTagOperationResponse, err error) { opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gateway/method_listbyservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gateway/method_listbyservice.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gateway/method_listbyservice.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gateway/method_listbyservice.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gateway/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gateway/method_update.go similarity index 90% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gateway/method_update.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gateway/method_update.go index fa00c7b03456..dc418ab69034 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gateway/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gateway/method_update.go @@ -47,7 +47,7 @@ func (o UpdateOperationOptions) ToQuery() *client.QueryParams { } // Update ... -func (c GatewayClient) Update(ctx context.Context, id GatewayId, input GatewayContract, options UpdateOperationOptions) (result UpdateOperationResponse, err error) { +func (c GatewayClient) Update(ctx context.Context, id ServiceGatewayId, input GatewayContract, options UpdateOperationOptions) (result UpdateOperationResponse, err error) { opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gateway/model_gatewaycontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gateway/model_gatewaycontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gateway/model_gatewaycontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gateway/model_gatewaycontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gateway/model_gatewaycontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gateway/model_gatewaycontractproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gateway/model_gatewaycontractproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gateway/model_gatewaycontractproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gateway/model_resourcelocationdatacontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gateway/model_resourcelocationdatacontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gateway/model_resourcelocationdatacontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gateway/model_resourcelocationdatacontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gateway/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gateway/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gateway/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gateway/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gateway/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gateway/version.go similarity index 67% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gateway/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gateway/version.go index de4a1c6e9f93..27ff987b5ab2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gateway/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gateway/version.go @@ -3,8 +3,8 @@ package gateway // 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-05-01-preview" +const defaultApiVersion = "2024-05-01" func userAgent() string { - return "hashicorp/go-azure-sdk/gateway/2022-08-01" + return "hashicorp/go-azure-sdk/gateway/2024-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewayapi/README.md similarity index 85% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewayapi/README.md index f030d8a2a690..33d6b2294289 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewayapi/README.md @@ -1,15 +1,17 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi` Documentation -The `gatewayapi` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2023-05-01-preview`). +## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewayapi` Documentation + +The `gatewayapi` SDK allows for interaction with Azure Resource Manager `apimanagement` (API Version `2024-05-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/apimanagement/2023-05-01-preview/gatewayapi" +import "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewayapi" ``` + ### Client Initialization ```go @@ -17,6 +19,7 @@ client := gatewayapi.NewGatewayApiClientWithBaseURI("https://management.azure.co client.Client.Authorizer = authorizer ``` + ### Example Usage: `GatewayApiClient.CreateOrUpdate` ```go @@ -37,6 +40,7 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `GatewayApiClient.Delete` ```go @@ -52,6 +56,7 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `GatewayApiClient.GetEntityTag` ```go @@ -67,11 +72,12 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `GatewayApiClient.ListByService` ```go ctx := context.TODO() -id := gatewayapi.NewGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "gatewayId") +id := gatewayapi.NewServiceGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "gatewayId") // alternatively `client.ListByService(ctx, id, gatewayapi.DefaultListByServiceOperationOptions())` can be used to do batched pagination items, err := client.ListByServiceComplete(ctx, id, gatewayapi.DefaultListByServiceOperationOptions()) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewayapi/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewayapi/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewayapi/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewayapi/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi/id_gatewayapi.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewayapi/id_gatewayapi.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi/id_gatewayapi.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewayapi/id_gatewayapi.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi/id_gateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewayapi/id_servicegateway.go similarity index 66% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi/id_gateway.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewayapi/id_servicegateway.go index d5d88789e90e..19f79016cde4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi/id_gateway.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewayapi/id_servicegateway.go @@ -12,22 +12,22 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. func init() { - recaser.RegisterResourceId(&GatewayId{}) + recaser.RegisterResourceId(&ServiceGatewayId{}) } -var _ resourceids.ResourceId = &GatewayId{} +var _ resourceids.ResourceId = &ServiceGatewayId{} -// GatewayId is a struct representing the Resource ID for a Gateway -type GatewayId struct { +// ServiceGatewayId is a struct representing the Resource ID for a Service Gateway +type ServiceGatewayId struct { SubscriptionId string ResourceGroupName string ServiceName string GatewayId string } -// NewGatewayID returns a new GatewayId struct -func NewGatewayID(subscriptionId string, resourceGroupName string, serviceName string, gatewayId string) GatewayId { - return GatewayId{ +// NewServiceGatewayID returns a new ServiceGatewayId struct +func NewServiceGatewayID(subscriptionId string, resourceGroupName string, serviceName string, gatewayId string) ServiceGatewayId { + return ServiceGatewayId{ SubscriptionId: subscriptionId, ResourceGroupName: resourceGroupName, ServiceName: serviceName, @@ -35,15 +35,15 @@ func NewGatewayID(subscriptionId string, resourceGroupName string, serviceName s } } -// ParseGatewayID parses 'input' into a GatewayId -func ParseGatewayID(input string) (*GatewayId, error) { - parser := resourceids.NewParserFromResourceIdType(&GatewayId{}) +// ParseServiceGatewayID parses 'input' into a ServiceGatewayId +func ParseServiceGatewayID(input string) (*ServiceGatewayId, error) { + parser := resourceids.NewParserFromResourceIdType(&ServiceGatewayId{}) parsed, err := parser.Parse(input, false) if err != nil { return nil, fmt.Errorf("parsing %q: %+v", input, err) } - id := GatewayId{} + id := ServiceGatewayId{} if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -51,16 +51,16 @@ func ParseGatewayID(input string) (*GatewayId, error) { return &id, nil } -// ParseGatewayIDInsensitively parses 'input' case-insensitively into a GatewayId +// ParseServiceGatewayIDInsensitively parses 'input' case-insensitively into a ServiceGatewayId // note: this method should only be used for API response data and not user input -func ParseGatewayIDInsensitively(input string) (*GatewayId, error) { - parser := resourceids.NewParserFromResourceIdType(&GatewayId{}) +func ParseServiceGatewayIDInsensitively(input string) (*ServiceGatewayId, error) { + parser := resourceids.NewParserFromResourceIdType(&ServiceGatewayId{}) parsed, err := parser.Parse(input, true) if err != nil { return nil, fmt.Errorf("parsing %q: %+v", input, err) } - id := GatewayId{} + id := ServiceGatewayId{} if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -68,7 +68,7 @@ func ParseGatewayIDInsensitively(input string) (*GatewayId, error) { return &id, nil } -func (id *GatewayId) FromParseResult(input resourceids.ParseResult) error { +func (id *ServiceGatewayId) FromParseResult(input resourceids.ParseResult) error { var ok bool if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { @@ -90,29 +90,29 @@ func (id *GatewayId) FromParseResult(input resourceids.ParseResult) error { return nil } -// ValidateGatewayID checks that 'input' can be parsed as a Gateway ID -func ValidateGatewayID(input interface{}, key string) (warnings []string, errors []error) { +// ValidateServiceGatewayID checks that 'input' can be parsed as a Service Gateway ID +func ValidateServiceGatewayID(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 := ParseGatewayID(v); err != nil { + if _, err := ParseServiceGatewayID(v); err != nil { errors = append(errors, err) } return } -// ID returns the formatted Gateway ID -func (id GatewayId) ID() string { +// ID returns the formatted Service Gateway ID +func (id ServiceGatewayId) ID() string { fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.ApiManagement/service/%s/gateways/%s" return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.ServiceName, id.GatewayId) } -// Segments returns a slice of Resource ID Segments which comprise this Gateway ID -func (id GatewayId) Segments() []resourceids.Segment { +// Segments returns a slice of Resource ID Segments which comprise this Service Gateway ID +func (id ServiceGatewayId) Segments() []resourceids.Segment { return []resourceids.Segment{ resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), @@ -127,13 +127,13 @@ func (id GatewayId) Segments() []resourceids.Segment { } } -// String returns a human-readable description of this Gateway ID -func (id GatewayId) String() string { +// String returns a human-readable description of this Service Gateway ID +func (id ServiceGatewayId) String() string { components := []string{ fmt.Sprintf("Subscription: %q", id.SubscriptionId), fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), fmt.Sprintf("Service Name: %q", id.ServiceName), fmt.Sprintf("Gateway: %q", id.GatewayId), } - return fmt.Sprintf("Gateway (%s)", strings.Join(components, "\n")) + return fmt.Sprintf("Service Gateway (%s)", strings.Join(components, "\n")) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewayapi/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewayapi/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewayapi/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewayapi/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi/method_getentitytag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewayapi/method_getentitytag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi/method_getentitytag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewayapi/method_getentitytag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi/method_listbyservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewayapi/method_listbyservice.go similarity index 89% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi/method_listbyservice.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewayapi/method_listbyservice.go index 38dc86de4e9b..22b450a3d248 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi/method_listbyservice.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewayapi/method_listbyservice.go @@ -72,7 +72,7 @@ func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { } // ListByService ... -func (c GatewayApiClient) ListByService(ctx context.Context, id GatewayId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { +func (c GatewayApiClient) ListByService(ctx context.Context, id ServiceGatewayId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ @@ -112,12 +112,12 @@ func (c GatewayApiClient) ListByService(ctx context.Context, id GatewayId, optio } // ListByServiceComplete retrieves all the results into a single object -func (c GatewayApiClient) ListByServiceComplete(ctx context.Context, id GatewayId, options ListByServiceOperationOptions) (ListByServiceCompleteResult, error) { +func (c GatewayApiClient) ListByServiceComplete(ctx context.Context, id ServiceGatewayId, options ListByServiceOperationOptions) (ListByServiceCompleteResult, error) { return c.ListByServiceCompleteMatchingPredicate(ctx, id, options, ApiContractOperationPredicate{}) } // ListByServiceCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c GatewayApiClient) ListByServiceCompleteMatchingPredicate(ctx context.Context, id GatewayId, options ListByServiceOperationOptions, predicate ApiContractOperationPredicate) (result ListByServiceCompleteResult, err error) { +func (c GatewayApiClient) ListByServiceCompleteMatchingPredicate(ctx context.Context, id ServiceGatewayId, options ListByServiceOperationOptions, predicate ApiContractOperationPredicate) (result ListByServiceCompleteResult, err error) { items := make([]ApiContract, 0) resp, err := c.ListByService(ctx, id, options) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi/model_apicontactinformation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewayapi/model_apicontactinformation.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi/model_apicontactinformation.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewayapi/model_apicontactinformation.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi/model_apicontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewayapi/model_apicontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi/model_apicontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewayapi/model_apicontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi/model_apicontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewayapi/model_apicontractproperties.go similarity index 97% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi/model_apicontractproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewayapi/model_apicontractproperties.go index fb258f9f8405..2acee539d775 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi/model_apicontractproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewayapi/model_apicontractproperties.go @@ -20,7 +20,7 @@ type ApiContractProperties struct { Path string `json:"path"` Protocols *[]Protocol `json:"protocols,omitempty"` ProvisioningState *string `json:"provisioningState,omitempty"` - ServiceUrl *string `json:"serviceUrl,omitempty"` + ServiceURL *string `json:"serviceUrl,omitempty"` SourceApiId *string `json:"sourceApiId,omitempty"` SubscriptionKeyParameterNames *SubscriptionKeyParameterNamesContract `json:"subscriptionKeyParameterNames,omitempty"` SubscriptionRequired *bool `json:"subscriptionRequired,omitempty"` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi/model_apilicenseinformation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewayapi/model_apilicenseinformation.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi/model_apilicenseinformation.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewayapi/model_apilicenseinformation.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi/model_apiversionsetcontractdetails.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewayapi/model_apiversionsetcontractdetails.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi/model_apiversionsetcontractdetails.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewayapi/model_apiversionsetcontractdetails.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi/model_associationcontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewayapi/model_associationcontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi/model_associationcontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewayapi/model_associationcontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi/model_associationcontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewayapi/model_associationcontractproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi/model_associationcontractproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewayapi/model_associationcontractproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi/model_authenticationsettingscontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewayapi/model_authenticationsettingscontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi/model_authenticationsettingscontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewayapi/model_authenticationsettingscontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi/model_oauth2authenticationsettingscontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewayapi/model_oauth2authenticationsettingscontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi/model_oauth2authenticationsettingscontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewayapi/model_oauth2authenticationsettingscontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi/model_openidauthenticationsettingscontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewayapi/model_openidauthenticationsettingscontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi/model_openidauthenticationsettingscontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewayapi/model_openidauthenticationsettingscontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi/model_subscriptionkeyparameternamescontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewayapi/model_subscriptionkeyparameternamescontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi/model_subscriptionkeyparameternamescontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewayapi/model_subscriptionkeyparameternamescontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewayapi/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewayapi/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewayapi/version.go similarity index 66% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewayapi/version.go index f0e63749d7bc..763b7645491f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewayapi/version.go @@ -3,8 +3,8 @@ package gatewayapi // 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-05-01-preview" +const defaultApiVersion = "2024-05-01" func userAgent() string { - return "hashicorp/go-azure-sdk/gatewayapi/2022-08-01" + return "hashicorp/go-azure-sdk/gatewayapi/2024-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewaycertificateauthority/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewaycertificateauthority/README.md similarity index 89% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewaycertificateauthority/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewaycertificateauthority/README.md index 9b82c6c09ea5..9a1545fb9357 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewaycertificateauthority/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewaycertificateauthority/README.md @@ -1,15 +1,17 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewaycertificateauthority` Documentation -The `gatewaycertificateauthority` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2023-05-01-preview`). +## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewaycertificateauthority` Documentation + +The `gatewaycertificateauthority` SDK allows for interaction with Azure Resource Manager `apimanagement` (API Version `2024-05-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/apimanagement/2023-05-01-preview/gatewaycertificateauthority" +import "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewaycertificateauthority" ``` + ### Client Initialization ```go @@ -17,6 +19,7 @@ client := gatewaycertificateauthority.NewGatewayCertificateAuthorityClientWithBa client.Client.Authorizer = authorizer ``` + ### Example Usage: `GatewayCertificateAuthorityClient.CreateOrUpdate` ```go @@ -37,6 +40,7 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `GatewayCertificateAuthorityClient.Delete` ```go @@ -52,6 +56,7 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `GatewayCertificateAuthorityClient.Get` ```go @@ -67,6 +72,7 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `GatewayCertificateAuthorityClient.GetEntityTag` ```go @@ -82,11 +88,12 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `GatewayCertificateAuthorityClient.ListByService` ```go ctx := context.TODO() -id := gatewaycertificateauthority.NewGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "gatewayId") +id := gatewaycertificateauthority.NewServiceGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "gatewayId") // alternatively `client.ListByService(ctx, id, gatewaycertificateauthority.DefaultListByServiceOperationOptions())` can be used to do batched pagination items, err := client.ListByServiceComplete(ctx, id, gatewaycertificateauthority.DefaultListByServiceOperationOptions()) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewaycertificateauthority/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewaycertificateauthority/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewaycertificateauthority/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewaycertificateauthority/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewaycertificateauthority/id_certificateauthority.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewaycertificateauthority/id_certificateauthority.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewaycertificateauthority/id_certificateauthority.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewaycertificateauthority/id_certificateauthority.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewaycertificateauthority/id_gateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewaycertificateauthority/id_servicegateway.go similarity index 66% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewaycertificateauthority/id_gateway.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewaycertificateauthority/id_servicegateway.go index 55150d72702e..a3d123e76a4a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewaycertificateauthority/id_gateway.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewaycertificateauthority/id_servicegateway.go @@ -12,22 +12,22 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. func init() { - recaser.RegisterResourceId(&GatewayId{}) + recaser.RegisterResourceId(&ServiceGatewayId{}) } -var _ resourceids.ResourceId = &GatewayId{} +var _ resourceids.ResourceId = &ServiceGatewayId{} -// GatewayId is a struct representing the Resource ID for a Gateway -type GatewayId struct { +// ServiceGatewayId is a struct representing the Resource ID for a Service Gateway +type ServiceGatewayId struct { SubscriptionId string ResourceGroupName string ServiceName string GatewayId string } -// NewGatewayID returns a new GatewayId struct -func NewGatewayID(subscriptionId string, resourceGroupName string, serviceName string, gatewayId string) GatewayId { - return GatewayId{ +// NewServiceGatewayID returns a new ServiceGatewayId struct +func NewServiceGatewayID(subscriptionId string, resourceGroupName string, serviceName string, gatewayId string) ServiceGatewayId { + return ServiceGatewayId{ SubscriptionId: subscriptionId, ResourceGroupName: resourceGroupName, ServiceName: serviceName, @@ -35,15 +35,15 @@ func NewGatewayID(subscriptionId string, resourceGroupName string, serviceName s } } -// ParseGatewayID parses 'input' into a GatewayId -func ParseGatewayID(input string) (*GatewayId, error) { - parser := resourceids.NewParserFromResourceIdType(&GatewayId{}) +// ParseServiceGatewayID parses 'input' into a ServiceGatewayId +func ParseServiceGatewayID(input string) (*ServiceGatewayId, error) { + parser := resourceids.NewParserFromResourceIdType(&ServiceGatewayId{}) parsed, err := parser.Parse(input, false) if err != nil { return nil, fmt.Errorf("parsing %q: %+v", input, err) } - id := GatewayId{} + id := ServiceGatewayId{} if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -51,16 +51,16 @@ func ParseGatewayID(input string) (*GatewayId, error) { return &id, nil } -// ParseGatewayIDInsensitively parses 'input' case-insensitively into a GatewayId +// ParseServiceGatewayIDInsensitively parses 'input' case-insensitively into a ServiceGatewayId // note: this method should only be used for API response data and not user input -func ParseGatewayIDInsensitively(input string) (*GatewayId, error) { - parser := resourceids.NewParserFromResourceIdType(&GatewayId{}) +func ParseServiceGatewayIDInsensitively(input string) (*ServiceGatewayId, error) { + parser := resourceids.NewParserFromResourceIdType(&ServiceGatewayId{}) parsed, err := parser.Parse(input, true) if err != nil { return nil, fmt.Errorf("parsing %q: %+v", input, err) } - id := GatewayId{} + id := ServiceGatewayId{} if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -68,7 +68,7 @@ func ParseGatewayIDInsensitively(input string) (*GatewayId, error) { return &id, nil } -func (id *GatewayId) FromParseResult(input resourceids.ParseResult) error { +func (id *ServiceGatewayId) FromParseResult(input resourceids.ParseResult) error { var ok bool if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { @@ -90,29 +90,29 @@ func (id *GatewayId) FromParseResult(input resourceids.ParseResult) error { return nil } -// ValidateGatewayID checks that 'input' can be parsed as a Gateway ID -func ValidateGatewayID(input interface{}, key string) (warnings []string, errors []error) { +// ValidateServiceGatewayID checks that 'input' can be parsed as a Service Gateway ID +func ValidateServiceGatewayID(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 := ParseGatewayID(v); err != nil { + if _, err := ParseServiceGatewayID(v); err != nil { errors = append(errors, err) } return } -// ID returns the formatted Gateway ID -func (id GatewayId) ID() string { +// ID returns the formatted Service Gateway ID +func (id ServiceGatewayId) ID() string { fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.ApiManagement/service/%s/gateways/%s" return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.ServiceName, id.GatewayId) } -// Segments returns a slice of Resource ID Segments which comprise this Gateway ID -func (id GatewayId) Segments() []resourceids.Segment { +// Segments returns a slice of Resource ID Segments which comprise this Service Gateway ID +func (id ServiceGatewayId) Segments() []resourceids.Segment { return []resourceids.Segment{ resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), @@ -127,13 +127,13 @@ func (id GatewayId) Segments() []resourceids.Segment { } } -// String returns a human-readable description of this Gateway ID -func (id GatewayId) String() string { +// String returns a human-readable description of this Service Gateway ID +func (id ServiceGatewayId) String() string { components := []string{ fmt.Sprintf("Subscription: %q", id.SubscriptionId), fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), fmt.Sprintf("Service Name: %q", id.ServiceName), fmt.Sprintf("Gateway: %q", id.GatewayId), } - return fmt.Sprintf("Gateway (%s)", strings.Join(components, "\n")) + return fmt.Sprintf("Service Gateway (%s)", strings.Join(components, "\n")) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewaycertificateauthority/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewaycertificateauthority/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewaycertificateauthority/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewaycertificateauthority/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewaycertificateauthority/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewaycertificateauthority/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewaycertificateauthority/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewaycertificateauthority/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewaycertificateauthority/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewaycertificateauthority/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewaycertificateauthority/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewaycertificateauthority/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewaycertificateauthority/method_getentitytag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewaycertificateauthority/method_getentitytag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewaycertificateauthority/method_getentitytag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewaycertificateauthority/method_getentitytag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewaycertificateauthority/method_listbyservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewaycertificateauthority/method_listbyservice.go similarity index 87% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewaycertificateauthority/method_listbyservice.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewaycertificateauthority/method_listbyservice.go index 93075c633f1f..fd4cff606a34 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewaycertificateauthority/method_listbyservice.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewaycertificateauthority/method_listbyservice.go @@ -72,7 +72,7 @@ func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { } // ListByService ... -func (c GatewayCertificateAuthorityClient) ListByService(ctx context.Context, id GatewayId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { +func (c GatewayCertificateAuthorityClient) ListByService(ctx context.Context, id ServiceGatewayId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ @@ -112,12 +112,12 @@ func (c GatewayCertificateAuthorityClient) ListByService(ctx context.Context, id } // ListByServiceComplete retrieves all the results into a single object -func (c GatewayCertificateAuthorityClient) ListByServiceComplete(ctx context.Context, id GatewayId, options ListByServiceOperationOptions) (ListByServiceCompleteResult, error) { +func (c GatewayCertificateAuthorityClient) ListByServiceComplete(ctx context.Context, id ServiceGatewayId, options ListByServiceOperationOptions) (ListByServiceCompleteResult, error) { return c.ListByServiceCompleteMatchingPredicate(ctx, id, options, GatewayCertificateAuthorityContractOperationPredicate{}) } // ListByServiceCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c GatewayCertificateAuthorityClient) ListByServiceCompleteMatchingPredicate(ctx context.Context, id GatewayId, options ListByServiceOperationOptions, predicate GatewayCertificateAuthorityContractOperationPredicate) (result ListByServiceCompleteResult, err error) { +func (c GatewayCertificateAuthorityClient) ListByServiceCompleteMatchingPredicate(ctx context.Context, id ServiceGatewayId, options ListByServiceOperationOptions, predicate GatewayCertificateAuthorityContractOperationPredicate) (result ListByServiceCompleteResult, err error) { items := make([]GatewayCertificateAuthorityContract, 0) resp, err := c.ListByService(ctx, id, options) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewaycertificateauthority/model_gatewaycertificateauthoritycontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewaycertificateauthority/model_gatewaycertificateauthoritycontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewaycertificateauthority/model_gatewaycertificateauthoritycontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewaycertificateauthority/model_gatewaycertificateauthoritycontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewaycertificateauthority/model_gatewaycertificateauthoritycontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewaycertificateauthority/model_gatewaycertificateauthoritycontractproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewaycertificateauthority/model_gatewaycertificateauthoritycontractproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewaycertificateauthority/model_gatewaycertificateauthoritycontractproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewaycertificateauthority/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewaycertificateauthority/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewaycertificateauthority/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewaycertificateauthority/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewaycertificateauthority/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewaycertificateauthority/version.go similarity index 65% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewaycertificateauthority/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewaycertificateauthority/version.go index 9da036300835..7215bfe8c066 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewaycertificateauthority/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewaycertificateauthority/version.go @@ -3,8 +3,8 @@ package gatewaycertificateauthority // 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-05-01-preview" +const defaultApiVersion = "2024-05-01" func userAgent() string { - return "hashicorp/go-azure-sdk/gatewaycertificateauthority/2022-08-01" + return "hashicorp/go-azure-sdk/gatewaycertificateauthority/2024-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayhostnameconfiguration/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewayhostnameconfiguration/README.md similarity index 89% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayhostnameconfiguration/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewayhostnameconfiguration/README.md index 1a7f99000348..6b424a9ad90d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayhostnameconfiguration/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewayhostnameconfiguration/README.md @@ -1,15 +1,17 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayhostnameconfiguration` Documentation -The `gatewayhostnameconfiguration` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2023-05-01-preview`). +## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewayhostnameconfiguration` Documentation + +The `gatewayhostnameconfiguration` SDK allows for interaction with Azure Resource Manager `apimanagement` (API Version `2024-05-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/apimanagement/2023-05-01-preview/gatewayhostnameconfiguration" +import "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewayhostnameconfiguration" ``` + ### Client Initialization ```go @@ -17,6 +19,7 @@ client := gatewayhostnameconfiguration.NewGatewayHostnameConfigurationClientWith client.Client.Authorizer = authorizer ``` + ### Example Usage: `GatewayHostnameConfigurationClient.CreateOrUpdate` ```go @@ -37,6 +40,7 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `GatewayHostnameConfigurationClient.Delete` ```go @@ -52,6 +56,7 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `GatewayHostnameConfigurationClient.Get` ```go @@ -67,6 +72,7 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `GatewayHostnameConfigurationClient.GetEntityTag` ```go @@ -82,11 +88,12 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `GatewayHostnameConfigurationClient.ListByService` ```go ctx := context.TODO() -id := gatewayhostnameconfiguration.NewGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "gatewayId") +id := gatewayhostnameconfiguration.NewServiceGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "gatewayId") // alternatively `client.ListByService(ctx, id, gatewayhostnameconfiguration.DefaultListByServiceOperationOptions())` can be used to do batched pagination items, err := client.ListByServiceComplete(ctx, id, gatewayhostnameconfiguration.DefaultListByServiceOperationOptions()) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayhostnameconfiguration/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewayhostnameconfiguration/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayhostnameconfiguration/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewayhostnameconfiguration/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayhostnameconfiguration/id_hostnameconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewayhostnameconfiguration/id_hostnameconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayhostnameconfiguration/id_hostnameconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewayhostnameconfiguration/id_hostnameconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayhostnameconfiguration/id_gateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewayhostnameconfiguration/id_servicegateway.go similarity index 66% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayhostnameconfiguration/id_gateway.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewayhostnameconfiguration/id_servicegateway.go index c19448680f6a..942ba246e808 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayhostnameconfiguration/id_gateway.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewayhostnameconfiguration/id_servicegateway.go @@ -12,22 +12,22 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. func init() { - recaser.RegisterResourceId(&GatewayId{}) + recaser.RegisterResourceId(&ServiceGatewayId{}) } -var _ resourceids.ResourceId = &GatewayId{} +var _ resourceids.ResourceId = &ServiceGatewayId{} -// GatewayId is a struct representing the Resource ID for a Gateway -type GatewayId struct { +// ServiceGatewayId is a struct representing the Resource ID for a Service Gateway +type ServiceGatewayId struct { SubscriptionId string ResourceGroupName string ServiceName string GatewayId string } -// NewGatewayID returns a new GatewayId struct -func NewGatewayID(subscriptionId string, resourceGroupName string, serviceName string, gatewayId string) GatewayId { - return GatewayId{ +// NewServiceGatewayID returns a new ServiceGatewayId struct +func NewServiceGatewayID(subscriptionId string, resourceGroupName string, serviceName string, gatewayId string) ServiceGatewayId { + return ServiceGatewayId{ SubscriptionId: subscriptionId, ResourceGroupName: resourceGroupName, ServiceName: serviceName, @@ -35,15 +35,15 @@ func NewGatewayID(subscriptionId string, resourceGroupName string, serviceName s } } -// ParseGatewayID parses 'input' into a GatewayId -func ParseGatewayID(input string) (*GatewayId, error) { - parser := resourceids.NewParserFromResourceIdType(&GatewayId{}) +// ParseServiceGatewayID parses 'input' into a ServiceGatewayId +func ParseServiceGatewayID(input string) (*ServiceGatewayId, error) { + parser := resourceids.NewParserFromResourceIdType(&ServiceGatewayId{}) parsed, err := parser.Parse(input, false) if err != nil { return nil, fmt.Errorf("parsing %q: %+v", input, err) } - id := GatewayId{} + id := ServiceGatewayId{} if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -51,16 +51,16 @@ func ParseGatewayID(input string) (*GatewayId, error) { return &id, nil } -// ParseGatewayIDInsensitively parses 'input' case-insensitively into a GatewayId +// ParseServiceGatewayIDInsensitively parses 'input' case-insensitively into a ServiceGatewayId // note: this method should only be used for API response data and not user input -func ParseGatewayIDInsensitively(input string) (*GatewayId, error) { - parser := resourceids.NewParserFromResourceIdType(&GatewayId{}) +func ParseServiceGatewayIDInsensitively(input string) (*ServiceGatewayId, error) { + parser := resourceids.NewParserFromResourceIdType(&ServiceGatewayId{}) parsed, err := parser.Parse(input, true) if err != nil { return nil, fmt.Errorf("parsing %q: %+v", input, err) } - id := GatewayId{} + id := ServiceGatewayId{} if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -68,7 +68,7 @@ func ParseGatewayIDInsensitively(input string) (*GatewayId, error) { return &id, nil } -func (id *GatewayId) FromParseResult(input resourceids.ParseResult) error { +func (id *ServiceGatewayId) FromParseResult(input resourceids.ParseResult) error { var ok bool if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { @@ -90,29 +90,29 @@ func (id *GatewayId) FromParseResult(input resourceids.ParseResult) error { return nil } -// ValidateGatewayID checks that 'input' can be parsed as a Gateway ID -func ValidateGatewayID(input interface{}, key string) (warnings []string, errors []error) { +// ValidateServiceGatewayID checks that 'input' can be parsed as a Service Gateway ID +func ValidateServiceGatewayID(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 := ParseGatewayID(v); err != nil { + if _, err := ParseServiceGatewayID(v); err != nil { errors = append(errors, err) } return } -// ID returns the formatted Gateway ID -func (id GatewayId) ID() string { +// ID returns the formatted Service Gateway ID +func (id ServiceGatewayId) ID() string { fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.ApiManagement/service/%s/gateways/%s" return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.ServiceName, id.GatewayId) } -// Segments returns a slice of Resource ID Segments which comprise this Gateway ID -func (id GatewayId) Segments() []resourceids.Segment { +// Segments returns a slice of Resource ID Segments which comprise this Service Gateway ID +func (id ServiceGatewayId) Segments() []resourceids.Segment { return []resourceids.Segment{ resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), @@ -127,13 +127,13 @@ func (id GatewayId) Segments() []resourceids.Segment { } } -// String returns a human-readable description of this Gateway ID -func (id GatewayId) String() string { +// String returns a human-readable description of this Service Gateway ID +func (id ServiceGatewayId) String() string { components := []string{ fmt.Sprintf("Subscription: %q", id.SubscriptionId), fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), fmt.Sprintf("Service Name: %q", id.ServiceName), fmt.Sprintf("Gateway: %q", id.GatewayId), } - return fmt.Sprintf("Gateway (%s)", strings.Join(components, "\n")) + return fmt.Sprintf("Service Gateway (%s)", strings.Join(components, "\n")) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayhostnameconfiguration/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewayhostnameconfiguration/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayhostnameconfiguration/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewayhostnameconfiguration/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayhostnameconfiguration/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewayhostnameconfiguration/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayhostnameconfiguration/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewayhostnameconfiguration/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayhostnameconfiguration/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewayhostnameconfiguration/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayhostnameconfiguration/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewayhostnameconfiguration/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayhostnameconfiguration/method_getentitytag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewayhostnameconfiguration/method_getentitytag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayhostnameconfiguration/method_getentitytag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewayhostnameconfiguration/method_getentitytag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayhostnameconfiguration/method_listbyservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewayhostnameconfiguration/method_listbyservice.go similarity index 87% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayhostnameconfiguration/method_listbyservice.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewayhostnameconfiguration/method_listbyservice.go index fde20e31a6ca..f9f2f9889511 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayhostnameconfiguration/method_listbyservice.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewayhostnameconfiguration/method_listbyservice.go @@ -72,7 +72,7 @@ func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { } // ListByService ... -func (c GatewayHostnameConfigurationClient) ListByService(ctx context.Context, id GatewayId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { +func (c GatewayHostnameConfigurationClient) ListByService(ctx context.Context, id ServiceGatewayId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ @@ -112,12 +112,12 @@ func (c GatewayHostnameConfigurationClient) ListByService(ctx context.Context, i } // ListByServiceComplete retrieves all the results into a single object -func (c GatewayHostnameConfigurationClient) ListByServiceComplete(ctx context.Context, id GatewayId, options ListByServiceOperationOptions) (ListByServiceCompleteResult, error) { +func (c GatewayHostnameConfigurationClient) ListByServiceComplete(ctx context.Context, id ServiceGatewayId, options ListByServiceOperationOptions) (ListByServiceCompleteResult, error) { return c.ListByServiceCompleteMatchingPredicate(ctx, id, options, GatewayHostnameConfigurationContractOperationPredicate{}) } // ListByServiceCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c GatewayHostnameConfigurationClient) ListByServiceCompleteMatchingPredicate(ctx context.Context, id GatewayId, options ListByServiceOperationOptions, predicate GatewayHostnameConfigurationContractOperationPredicate) (result ListByServiceCompleteResult, err error) { +func (c GatewayHostnameConfigurationClient) ListByServiceCompleteMatchingPredicate(ctx context.Context, id ServiceGatewayId, options ListByServiceOperationOptions, predicate GatewayHostnameConfigurationContractOperationPredicate) (result ListByServiceCompleteResult, err error) { items := make([]GatewayHostnameConfigurationContract, 0) resp, err := c.ListByService(ctx, id, options) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayhostnameconfiguration/model_gatewayhostnameconfigurationcontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewayhostnameconfiguration/model_gatewayhostnameconfigurationcontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayhostnameconfiguration/model_gatewayhostnameconfigurationcontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewayhostnameconfiguration/model_gatewayhostnameconfigurationcontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayhostnameconfiguration/model_gatewayhostnameconfigurationcontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewayhostnameconfiguration/model_gatewayhostnameconfigurationcontractproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayhostnameconfiguration/model_gatewayhostnameconfigurationcontractproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewayhostnameconfiguration/model_gatewayhostnameconfigurationcontractproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayhostnameconfiguration/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewayhostnameconfiguration/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayhostnameconfiguration/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewayhostnameconfiguration/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayhostnameconfiguration/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewayhostnameconfiguration/version.go similarity index 83% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayhostnameconfiguration/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewayhostnameconfiguration/version.go index 15ca317e7738..f573c6665802 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayhostnameconfiguration/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewayhostnameconfiguration/version.go @@ -3,8 +3,8 @@ package gatewayhostnameconfiguration // 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-05-01-preview" +const defaultApiVersion = "2024-05-01" func userAgent() string { - return "hashicorp/go-azure-sdk/gatewayhostnameconfiguration/2022-08-01" + return "hashicorp/go-azure-sdk/gatewayhostnameconfiguration/2024-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/group/README.md similarity index 83% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/group/README.md index baf0ed706210..09353d353113 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/group/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/group` Documentation -The `group` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2023-05-01-preview`). +The `group` SDK allows for interaction with Azure Resource Manager `apimanagement` (API Version `2024-05-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/apimanagement/2023-05-01-preview/group" +import "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/group" ``` @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := group.NewGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "groupIdValue") +id := group.NewGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "groupId") payload := group.GroupCreateParameters{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := group.NewGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "groupIdValue") +id := group.NewGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "groupId") read, err := client.Delete(ctx, id, group.DefaultDeleteOperationOptions()) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := group.NewGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "groupIdValue") +id := group.NewGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "groupId") read, err := client.Get(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := group.NewGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "groupIdValue") +id := group.NewGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "groupId") read, err := client.GetEntityTag(ctx, id) if err != nil { @@ -93,7 +93,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := group.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue") +id := group.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") // alternatively `client.ListByService(ctx, id, group.DefaultListByServiceOperationOptions())` can be used to do batched pagination items, err := client.ListByServiceComplete(ctx, id, group.DefaultListByServiceOperationOptions()) @@ -110,7 +110,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := group.NewGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "groupIdValue") +id := group.NewGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "groupId") payload := group.GroupUpdateParameters{ // ... @@ -131,7 +131,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := group.NewWorkspaceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "groupIdValue") +id := group.NewWorkspaceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "groupId") payload := group.GroupCreateParameters{ // ... @@ -152,7 +152,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := group.NewWorkspaceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "groupIdValue") +id := group.NewWorkspaceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "groupId") read, err := client.WorkspaceGroupDelete(ctx, id, group.DefaultWorkspaceGroupDeleteOperationOptions()) if err != nil { @@ -168,7 +168,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := group.NewWorkspaceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "groupIdValue") +id := group.NewWorkspaceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "groupId") read, err := client.WorkspaceGroupGet(ctx, id) if err != nil { @@ -184,7 +184,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := group.NewWorkspaceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "groupIdValue") +id := group.NewWorkspaceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "groupId") read, err := client.WorkspaceGroupGetEntityTag(ctx, id) if err != nil { @@ -200,7 +200,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := group.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue") +id := group.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId") // alternatively `client.WorkspaceGroupListByService(ctx, id, group.DefaultWorkspaceGroupListByServiceOperationOptions())` can be used to do batched pagination items, err := client.WorkspaceGroupListByServiceComplete(ctx, id, group.DefaultWorkspaceGroupListByServiceOperationOptions()) @@ -217,7 +217,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := group.NewWorkspaceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "groupIdValue") +id := group.NewWorkspaceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "groupId") payload := group.GroupUpdateParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/group/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/group/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/group/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/group/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/id_group.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/group/id_group.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/id_group.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/group/id_group.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/id_service.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/group/id_service.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/id_service.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/group/id_service.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/id_workspace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/group/id_workspace.go similarity index 94% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/id_workspace.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/group/id_workspace.go index 2a31e848c5a3..90cf0b5b9b98 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/id_workspace.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/group/id_workspace.go @@ -44,7 +44,7 @@ func ParseWorkspaceID(input string) (*WorkspaceId, error) { } id := WorkspaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseWorkspaceIDInsensitively(input string) (*WorkspaceId, error) { } id := WorkspaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id WorkspaceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), - resourceids.UserSpecifiedSegment("workspaceId", "workspaceIdValue"), + resourceids.UserSpecifiedSegment("workspaceId", "workspaceId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/id_workspacegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/group/id_workspacegroup.go similarity index 94% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/id_workspacegroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/group/id_workspacegroup.go index d95eae814345..55d4415d0d66 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/id_workspacegroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/group/id_workspacegroup.go @@ -46,7 +46,7 @@ func ParseWorkspaceGroupID(input string) (*WorkspaceGroupId, error) { } id := WorkspaceGroupId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseWorkspaceGroupIDInsensitively(input string) (*WorkspaceGroupId, error) } id := WorkspaceGroupId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id WorkspaceGroupId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), - resourceids.UserSpecifiedSegment("workspaceId", "workspaceIdValue"), + resourceids.UserSpecifiedSegment("workspaceId", "workspaceId"), resourceids.StaticSegment("staticGroups", "groups", "groups"), - resourceids.UserSpecifiedSegment("groupId", "groupIdValue"), + resourceids.UserSpecifiedSegment("groupId", "groupId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/group/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/group/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/group/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/group/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/group/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/group/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/method_getentitytag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/group/method_getentitytag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/method_getentitytag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/group/method_getentitytag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/method_listbyservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/group/method_listbyservice.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/method_listbyservice.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/group/method_listbyservice.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/group/method_update.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/method_update.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/group/method_update.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/method_workspacegroupcreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/group/method_workspacegroupcreateorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/method_workspacegroupcreateorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/group/method_workspacegroupcreateorupdate.go index 5ad40a08c477..b43d3bcaa037 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/method_workspacegroupcreateorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/group/method_workspacegroupcreateorupdate.go @@ -36,6 +36,7 @@ func (o WorkspaceGroupCreateOrUpdateOperationOptions) ToHeaders() *client.Header func (o WorkspaceGroupCreateOrUpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -79,7 +80,6 @@ func (c GroupClient) WorkspaceGroupCreateOrUpdate(ctx context.Context, id Worksp var model GroupContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/method_workspacegroupdelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/group/method_workspacegroupdelete.go similarity index 99% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/method_workspacegroupdelete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/group/method_workspacegroupdelete.go index 949a8cb18469..f471d58942e4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/method_workspacegroupdelete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/group/method_workspacegroupdelete.go @@ -35,6 +35,7 @@ func (o WorkspaceGroupDeleteOperationOptions) ToHeaders() *client.Headers { func (o WorkspaceGroupDeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/method_workspacegroupget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/group/method_workspacegroupget.go similarity index 99% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/method_workspacegroupget.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/group/method_workspacegroupget.go index 88a4fa8e56be..b729c88a6620 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/method_workspacegroupget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/group/method_workspacegroupget.go @@ -45,7 +45,6 @@ func (c GroupClient) WorkspaceGroupGet(ctx context.Context, id WorkspaceGroupId) var model GroupContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/method_workspacegroupgetentitytag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/group/method_workspacegroupgetentitytag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/method_workspacegroupgetentitytag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/group/method_workspacegroupgetentitytag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/method_workspacegrouplistbyservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/group/method_workspacegrouplistbyservice.go similarity index 99% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/method_workspacegrouplistbyservice.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/group/method_workspacegrouplistbyservice.go index 2aa11bf1959c..71073410fa51 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/method_workspacegrouplistbyservice.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/group/method_workspacegrouplistbyservice.go @@ -41,6 +41,7 @@ func (o WorkspaceGroupListByServiceOperationOptions) ToHeaders() *client.Headers func (o WorkspaceGroupListByServiceOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/method_workspacegroupupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/group/method_workspacegroupupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/method_workspacegroupupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/group/method_workspacegroupupdate.go index 6e246635560e..8c7f865f39f6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/method_workspacegroupupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/group/method_workspacegroupupdate.go @@ -36,6 +36,7 @@ func (o WorkspaceGroupUpdateOperationOptions) ToHeaders() *client.Headers { func (o WorkspaceGroupUpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -78,7 +79,6 @@ func (c GroupClient) WorkspaceGroupUpdate(ctx context.Context, id WorkspaceGroup var model GroupContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/model_groupcontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/group/model_groupcontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/model_groupcontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/group/model_groupcontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/model_groupcontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/group/model_groupcontractproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/model_groupcontractproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/group/model_groupcontractproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/model_groupcreateparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/group/model_groupcreateparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/model_groupcreateparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/group/model_groupcreateparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/model_groupcreateparametersproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/group/model_groupcreateparametersproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/model_groupcreateparametersproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/group/model_groupcreateparametersproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/model_groupupdateparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/group/model_groupupdateparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/model_groupupdateparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/group/model_groupupdateparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/model_groupupdateparametersproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/group/model_groupupdateparametersproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/model_groupupdateparametersproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/group/model_groupupdateparametersproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/group/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/group/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/group/version.go similarity index 67% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/group/version.go index e47231c6d6bb..1507413ac52d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/group/version.go @@ -3,8 +3,8 @@ package group // 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-05-01-preview" +const defaultApiVersion = "2024-05-01" func userAgent() string { - return "hashicorp/go-azure-sdk/group/2022-08-01" + return "hashicorp/go-azure-sdk/group/2024-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/groupuser/README.md similarity index 85% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/groupuser/README.md index 0e47c5c7aa61..28dd702d94e1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/groupuser/README.md @@ -1,15 +1,17 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser` Documentation -The `groupuser` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2023-05-01-preview`). +## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/groupuser` Documentation + +The `groupuser` SDK allows for interaction with Azure Resource Manager `apimanagement` (API Version `2024-05-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/apimanagement/2023-05-01-preview/groupuser" +import "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/groupuser" ``` + ### Client Initialization ```go @@ -17,6 +19,7 @@ client := groupuser.NewGroupUserClientWithBaseURI("https://management.azure.com" client.Client.Authorizer = authorizer ``` + ### Example Usage: `GroupUserClient.CheckEntityExists` ```go @@ -32,6 +35,7 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `GroupUserClient.Create` ```go @@ -47,6 +51,7 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `GroupUserClient.Delete` ```go @@ -62,6 +67,7 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `GroupUserClient.List` ```go @@ -78,11 +84,12 @@ for _, item := range items { } ``` + ### Example Usage: `GroupUserClient.WorkspaceGroupUserCheckEntityExists` ```go ctx := context.TODO() -id := groupuser.NewWorkspaceGroupUserID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "groupIdValue", "userIdValue") +id := groupuser.NewWorkspaceGroupUserID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "groupId", "userId") read, err := client.WorkspaceGroupUserCheckEntityExists(ctx, id) if err != nil { @@ -93,11 +100,12 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `GroupUserClient.WorkspaceGroupUserCreate` ```go ctx := context.TODO() -id := groupuser.NewWorkspaceGroupUserID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "groupIdValue", "userIdValue") +id := groupuser.NewWorkspaceGroupUserID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "groupId", "userId") read, err := client.WorkspaceGroupUserCreate(ctx, id) if err != nil { @@ -108,11 +116,12 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `GroupUserClient.WorkspaceGroupUserDelete` ```go ctx := context.TODO() -id := groupuser.NewWorkspaceGroupUserID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "groupIdValue", "userIdValue") +id := groupuser.NewWorkspaceGroupUserID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "groupId", "userId") read, err := client.WorkspaceGroupUserDelete(ctx, id) if err != nil { @@ -123,11 +132,12 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `GroupUserClient.WorkspaceGroupUserList` ```go ctx := context.TODO() -id := groupuser.NewWorkspaceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "groupIdValue") +id := groupuser.NewWorkspaceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "groupId") // alternatively `client.WorkspaceGroupUserList(ctx, id, groupuser.DefaultWorkspaceGroupUserListOperationOptions())` can be used to do batched pagination items, err := client.WorkspaceGroupUserListComplete(ctx, id, groupuser.DefaultWorkspaceGroupUserListOperationOptions()) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/groupuser/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/groupuser/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/groupuser/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/groupuser/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser/id_group.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/groupuser/id_group.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser/id_group.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/groupuser/id_group.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser/id_groupuser.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/groupuser/id_groupuser.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser/id_groupuser.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/groupuser/id_groupuser.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser/id_workspacegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/groupuser/id_workspacegroup.go similarity index 94% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser/id_workspacegroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/groupuser/id_workspacegroup.go index 6c67d5dd6e0a..b7f711582939 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser/id_workspacegroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/groupuser/id_workspacegroup.go @@ -46,7 +46,7 @@ func ParseWorkspaceGroupID(input string) (*WorkspaceGroupId, error) { } id := WorkspaceGroupId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseWorkspaceGroupIDInsensitively(input string) (*WorkspaceGroupId, error) } id := WorkspaceGroupId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id WorkspaceGroupId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), - resourceids.UserSpecifiedSegment("workspaceId", "workspaceIdValue"), + resourceids.UserSpecifiedSegment("workspaceId", "workspaceId"), resourceids.StaticSegment("staticGroups", "groups", "groups"), - resourceids.UserSpecifiedSegment("groupId", "groupIdValue"), + resourceids.UserSpecifiedSegment("groupId", "groupId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser/id_workspacegroupuser.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/groupuser/id_workspacegroupuser.go similarity index 93% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser/id_workspacegroupuser.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/groupuser/id_workspacegroupuser.go index fd00ae51ba3e..f74b6578932d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser/id_workspacegroupuser.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/groupuser/id_workspacegroupuser.go @@ -48,7 +48,7 @@ func ParseWorkspaceGroupUserID(input string) (*WorkspaceGroupUserId, error) { } id := WorkspaceGroupUserId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -65,7 +65,7 @@ func ParseWorkspaceGroupUserIDInsensitively(input string) (*WorkspaceGroupUserId } id := WorkspaceGroupUserId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -133,13 +133,13 @@ func (id WorkspaceGroupUserId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), - resourceids.UserSpecifiedSegment("workspaceId", "workspaceIdValue"), + resourceids.UserSpecifiedSegment("workspaceId", "workspaceId"), resourceids.StaticSegment("staticGroups", "groups", "groups"), - resourceids.UserSpecifiedSegment("groupId", "groupIdValue"), + resourceids.UserSpecifiedSegment("groupId", "groupId"), resourceids.StaticSegment("staticUsers", "users", "users"), - resourceids.UserSpecifiedSegment("userId", "userIdValue"), + resourceids.UserSpecifiedSegment("userId", "userId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser/method_checkentityexists.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/groupuser/method_checkentityexists.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser/method_checkentityexists.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/groupuser/method_checkentityexists.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser/method_create.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/groupuser/method_create.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser/method_create.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/groupuser/method_create.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/groupuser/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/groupuser/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/groupuser/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/groupuser/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser/method_workspacegroupusercheckentityexists.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/groupuser/method_workspacegroupusercheckentityexists.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser/method_workspacegroupusercheckentityexists.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/groupuser/method_workspacegroupusercheckentityexists.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser/method_workspacegroupusercreate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/groupuser/method_workspacegroupusercreate.go similarity index 99% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser/method_workspacegroupusercreate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/groupuser/method_workspacegroupusercreate.go index dd73551832d3..f7a9de38eabc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser/method_workspacegroupusercreate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/groupuser/method_workspacegroupusercreate.go @@ -46,7 +46,6 @@ func (c GroupUserClient) WorkspaceGroupUserCreate(ctx context.Context, id Worksp var model UserContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser/method_workspacegroupuserdelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/groupuser/method_workspacegroupuserdelete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser/method_workspacegroupuserdelete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/groupuser/method_workspacegroupuserdelete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser/method_workspacegroupuserlist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/groupuser/method_workspacegroupuserlist.go similarity index 99% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser/method_workspacegroupuserlist.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/groupuser/method_workspacegroupuserlist.go index c4e2a5270390..47776aadfd4b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser/method_workspacegroupuserlist.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/groupuser/method_workspacegroupuserlist.go @@ -41,6 +41,7 @@ func (o WorkspaceGroupUserListOperationOptions) ToHeaders() *client.Headers { func (o WorkspaceGroupUserListOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser/model_groupcontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/groupuser/model_groupcontractproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser/model_groupcontractproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/groupuser/model_groupcontractproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser/model_usercontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/groupuser/model_usercontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser/model_usercontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/groupuser/model_usercontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser/model_usercontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/groupuser/model_usercontractproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser/model_usercontractproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/groupuser/model_usercontractproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser/model_useridentitycontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/groupuser/model_useridentitycontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser/model_useridentitycontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/groupuser/model_useridentitycontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/groupuser/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/groupuser/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/groupuser/version.go similarity index 66% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/groupuser/version.go index 94c6bbce5d73..037a8cf6f310 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/groupuser/version.go @@ -3,8 +3,8 @@ package groupuser // 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-05-01-preview" +const defaultApiVersion = "2024-05-01" func userAgent() string { - return "hashicorp/go-azure-sdk/groupuser/2022-08-01" + return "hashicorp/go-azure-sdk/groupuser/2024-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/identityprovider/README.md similarity index 93% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/identityprovider/README.md index 9252aba94041..2533f54fa107 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/identityprovider/README.md @@ -1,15 +1,17 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider` Documentation -The `identityprovider` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2023-05-01-preview`). +## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/identityprovider` Documentation + +The `identityprovider` SDK allows for interaction with Azure Resource Manager `apimanagement` (API Version `2024-05-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/apimanagement/2023-05-01-preview/identityprovider" +import "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/identityprovider" ``` + ### Client Initialization ```go @@ -17,6 +19,7 @@ client := identityprovider.NewIdentityProviderClientWithBaseURI("https://managem client.Client.Authorizer = authorizer ``` + ### Example Usage: `IdentityProviderClient.CreateOrUpdate` ```go @@ -37,6 +40,7 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `IdentityProviderClient.Delete` ```go @@ -52,6 +56,7 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `IdentityProviderClient.Get` ```go @@ -67,6 +72,7 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `IdentityProviderClient.GetEntityTag` ```go @@ -82,6 +88,7 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `IdentityProviderClient.ListByService` ```go @@ -98,6 +105,7 @@ for _, item := range items { } ``` + ### Example Usage: `IdentityProviderClient.ListSecrets` ```go @@ -113,6 +121,7 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `IdentityProviderClient.Update` ```go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/identityprovider/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/identityprovider/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/identityprovider/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/identityprovider/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider/id_identityprovider.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/identityprovider/id_identityprovider.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider/id_identityprovider.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/identityprovider/id_identityprovider.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider/id_service.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/identityprovider/id_service.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider/id_service.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/identityprovider/id_service.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/identityprovider/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/identityprovider/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/identityprovider/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/identityprovider/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/identityprovider/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/identityprovider/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider/method_getentitytag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/identityprovider/method_getentitytag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider/method_getentitytag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/identityprovider/method_getentitytag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider/method_listbyservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/identityprovider/method_listbyservice.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider/method_listbyservice.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/identityprovider/method_listbyservice.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider/method_listsecrets.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/identityprovider/method_listsecrets.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider/method_listsecrets.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/identityprovider/method_listsecrets.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/identityprovider/method_update.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider/method_update.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/identityprovider/method_update.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider/model_clientsecretcontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/identityprovider/model_clientsecretcontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider/model_clientsecretcontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/identityprovider/model_clientsecretcontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider/model_identityprovidercontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/identityprovider/model_identityprovidercontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider/model_identityprovidercontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/identityprovider/model_identityprovidercontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider/model_identityprovidercontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/identityprovider/model_identityprovidercontractproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider/model_identityprovidercontractproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/identityprovider/model_identityprovidercontractproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider/model_identityprovidercreatecontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/identityprovider/model_identityprovidercreatecontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider/model_identityprovidercreatecontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/identityprovider/model_identityprovidercreatecontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider/model_identityprovidercreatecontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/identityprovider/model_identityprovidercreatecontractproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider/model_identityprovidercreatecontractproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/identityprovider/model_identityprovidercreatecontractproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider/model_identityproviderupdateparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/identityprovider/model_identityproviderupdateparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider/model_identityproviderupdateparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/identityprovider/model_identityproviderupdateparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider/model_identityproviderupdateproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/identityprovider/model_identityproviderupdateproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider/model_identityproviderupdateproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/identityprovider/model_identityproviderupdateproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/identityprovider/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/identityprovider/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/identityprovider/version.go similarity index 66% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/identityprovider/version.go index fc764ed369a4..251f913c0dce 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/identityprovider/version.go @@ -3,8 +3,8 @@ package identityprovider // 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-05-01-preview" +const defaultApiVersion = "2024-05-01" func userAgent() string { - return "hashicorp/go-azure-sdk/identityprovider/2022-08-01" + return "hashicorp/go-azure-sdk/identityprovider/2024-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/logger/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/logger/README.md new file mode 100644 index 000000000000..d67ca4eb4958 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/logger/README.md @@ -0,0 +1,234 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/logger` Documentation + +The `logger` SDK allows for interaction with Azure Resource Manager `apimanagement` (API Version `2024-05-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/apimanagement/2024-05-01/logger" +``` + + +### Client Initialization + +```go +client := logger.NewLoggerClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `LoggerClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := logger.NewLoggerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "loggerId") + +payload := logger.LoggerContract{ + // ... +} + + +read, err := client.CreateOrUpdate(ctx, id, payload, logger.DefaultCreateOrUpdateOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `LoggerClient.Delete` + +```go +ctx := context.TODO() +id := logger.NewLoggerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "loggerId") + +read, err := client.Delete(ctx, id, logger.DefaultDeleteOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `LoggerClient.Get` + +```go +ctx := context.TODO() +id := logger.NewLoggerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "loggerId") + +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: `LoggerClient.GetEntityTag` + +```go +ctx := context.TODO() +id := logger.NewLoggerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "loggerId") + +read, err := client.GetEntityTag(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `LoggerClient.ListByService` + +```go +ctx := context.TODO() +id := logger.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") + +// alternatively `client.ListByService(ctx, id, logger.DefaultListByServiceOperationOptions())` can be used to do batched pagination +items, err := client.ListByServiceComplete(ctx, id, logger.DefaultListByServiceOperationOptions()) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `LoggerClient.Update` + +```go +ctx := context.TODO() +id := logger.NewLoggerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "loggerId") + +payload := logger.LoggerUpdateContract{ + // ... +} + + +read, err := client.Update(ctx, id, payload, logger.DefaultUpdateOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `LoggerClient.WorkspaceLoggerCreateOrUpdate` + +```go +ctx := context.TODO() +id := logger.NewWorkspaceLoggerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "loggerId") + +payload := logger.LoggerContract{ + // ... +} + + +read, err := client.WorkspaceLoggerCreateOrUpdate(ctx, id, payload, logger.DefaultWorkspaceLoggerCreateOrUpdateOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `LoggerClient.WorkspaceLoggerDelete` + +```go +ctx := context.TODO() +id := logger.NewWorkspaceLoggerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "loggerId") + +read, err := client.WorkspaceLoggerDelete(ctx, id, logger.DefaultWorkspaceLoggerDeleteOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `LoggerClient.WorkspaceLoggerGet` + +```go +ctx := context.TODO() +id := logger.NewWorkspaceLoggerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "loggerId") + +read, err := client.WorkspaceLoggerGet(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `LoggerClient.WorkspaceLoggerGetEntityTag` + +```go +ctx := context.TODO() +id := logger.NewWorkspaceLoggerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "loggerId") + +read, err := client.WorkspaceLoggerGetEntityTag(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `LoggerClient.WorkspaceLoggerListByWorkspace` + +```go +ctx := context.TODO() +id := logger.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId") + +// alternatively `client.WorkspaceLoggerListByWorkspace(ctx, id, logger.DefaultWorkspaceLoggerListByWorkspaceOperationOptions())` can be used to do batched pagination +items, err := client.WorkspaceLoggerListByWorkspaceComplete(ctx, id, logger.DefaultWorkspaceLoggerListByWorkspaceOperationOptions()) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `LoggerClient.WorkspaceLoggerUpdate` + +```go +ctx := context.TODO() +id := logger.NewWorkspaceLoggerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "loggerId") + +payload := logger.LoggerUpdateContract{ + // ... +} + + +read, err := client.WorkspaceLoggerUpdate(ctx, id, payload, logger.DefaultWorkspaceLoggerUpdateOperationOptions()) +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/apimanagement/2023-05-01-preview/logger/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/logger/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/logger/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/logger/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/logger/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/logger/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/logger/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/logger/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/logger/id_logger.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/logger/id_logger.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/logger/id_logger.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/logger/id_logger.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/logger/id_service.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/logger/id_service.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/logger/id_service.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/logger/id_service.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/logger/id_workspace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/logger/id_workspace.go new file mode 100644 index 000000000000..7562e92fc191 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/logger/id_workspace.go @@ -0,0 +1,139 @@ +package logger + +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(&WorkspaceId{}) +} + +var _ resourceids.ResourceId = &WorkspaceId{} + +// WorkspaceId is a struct representing the Resource ID for a Workspace +type WorkspaceId struct { + SubscriptionId string + ResourceGroupName string + ServiceName string + WorkspaceId string +} + +// NewWorkspaceID returns a new WorkspaceId struct +func NewWorkspaceID(subscriptionId string, resourceGroupName string, serviceName string, workspaceId string) WorkspaceId { + return WorkspaceId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + ServiceName: serviceName, + WorkspaceId: workspaceId, + } +} + +// ParseWorkspaceID parses 'input' into a WorkspaceId +func ParseWorkspaceID(input string) (*WorkspaceId, error) { + parser := resourceids.NewParserFromResourceIdType(&WorkspaceId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := WorkspaceId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseWorkspaceIDInsensitively parses 'input' case-insensitively into a WorkspaceId +// note: this method should only be used for API response data and not user input +func ParseWorkspaceIDInsensitively(input string) (*WorkspaceId, error) { + parser := resourceids.NewParserFromResourceIdType(&WorkspaceId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := WorkspaceId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *WorkspaceId) 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.ServiceName, ok = input.Parsed["serviceName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "serviceName", input) + } + + if id.WorkspaceId, ok = input.Parsed["workspaceId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "workspaceId", input) + } + + return nil +} + +// ValidateWorkspaceID checks that 'input' can be parsed as a Workspace ID +func ValidateWorkspaceID(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 := ParseWorkspaceID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Workspace ID +func (id WorkspaceId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.ApiManagement/service/%s/workspaces/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.ServiceName, id.WorkspaceId) +} + +// Segments returns a slice of Resource ID Segments which comprise this Workspace ID +func (id WorkspaceId) 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("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), + resourceids.StaticSegment("staticService", "service", "service"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), + resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), + resourceids.UserSpecifiedSegment("workspaceId", "workspaceId"), + } +} + +// String returns a human-readable description of this Workspace ID +func (id WorkspaceId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Service Name: %q", id.ServiceName), + fmt.Sprintf("Workspace: %q", id.WorkspaceId), + } + return fmt.Sprintf("Workspace (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/logger/id_workspacelogger.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/logger/id_workspacelogger.go new file mode 100644 index 000000000000..7164118ff22b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/logger/id_workspacelogger.go @@ -0,0 +1,148 @@ +package logger + +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(&WorkspaceLoggerId{}) +} + +var _ resourceids.ResourceId = &WorkspaceLoggerId{} + +// WorkspaceLoggerId is a struct representing the Resource ID for a Workspace Logger +type WorkspaceLoggerId struct { + SubscriptionId string + ResourceGroupName string + ServiceName string + WorkspaceId string + LoggerId string +} + +// NewWorkspaceLoggerID returns a new WorkspaceLoggerId struct +func NewWorkspaceLoggerID(subscriptionId string, resourceGroupName string, serviceName string, workspaceId string, loggerId string) WorkspaceLoggerId { + return WorkspaceLoggerId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + ServiceName: serviceName, + WorkspaceId: workspaceId, + LoggerId: loggerId, + } +} + +// ParseWorkspaceLoggerID parses 'input' into a WorkspaceLoggerId +func ParseWorkspaceLoggerID(input string) (*WorkspaceLoggerId, error) { + parser := resourceids.NewParserFromResourceIdType(&WorkspaceLoggerId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := WorkspaceLoggerId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseWorkspaceLoggerIDInsensitively parses 'input' case-insensitively into a WorkspaceLoggerId +// note: this method should only be used for API response data and not user input +func ParseWorkspaceLoggerIDInsensitively(input string) (*WorkspaceLoggerId, error) { + parser := resourceids.NewParserFromResourceIdType(&WorkspaceLoggerId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := WorkspaceLoggerId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *WorkspaceLoggerId) 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.ServiceName, ok = input.Parsed["serviceName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "serviceName", input) + } + + if id.WorkspaceId, ok = input.Parsed["workspaceId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "workspaceId", input) + } + + if id.LoggerId, ok = input.Parsed["loggerId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "loggerId", input) + } + + return nil +} + +// ValidateWorkspaceLoggerID checks that 'input' can be parsed as a Workspace Logger ID +func ValidateWorkspaceLoggerID(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 := ParseWorkspaceLoggerID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Workspace Logger ID +func (id WorkspaceLoggerId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.ApiManagement/service/%s/workspaces/%s/loggers/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.ServiceName, id.WorkspaceId, id.LoggerId) +} + +// Segments returns a slice of Resource ID Segments which comprise this Workspace Logger ID +func (id WorkspaceLoggerId) 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("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), + resourceids.StaticSegment("staticService", "service", "service"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), + resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), + resourceids.UserSpecifiedSegment("workspaceId", "workspaceId"), + resourceids.StaticSegment("staticLoggers", "loggers", "loggers"), + resourceids.UserSpecifiedSegment("loggerId", "loggerId"), + } +} + +// String returns a human-readable description of this Workspace Logger ID +func (id WorkspaceLoggerId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Service Name: %q", id.ServiceName), + fmt.Sprintf("Workspace: %q", id.WorkspaceId), + fmt.Sprintf("Logger: %q", id.LoggerId), + } + return fmt.Sprintf("Workspace Logger (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/logger/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/logger/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/logger/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/logger/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/logger/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/logger/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/logger/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/logger/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/logger/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/logger/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/logger/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/logger/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/logger/method_getentitytag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/logger/method_getentitytag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/logger/method_getentitytag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/logger/method_getentitytag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/logger/method_listbyservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/logger/method_listbyservice.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/logger/method_listbyservice.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/logger/method_listbyservice.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/logger/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/logger/method_update.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/logger/method_update.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/logger/method_update.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/logger/method_workspaceloggercreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/logger/method_workspaceloggercreateorupdate.go new file mode 100644 index 000000000000..dea691c2e184 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/logger/method_workspaceloggercreateorupdate.go @@ -0,0 +1,88 @@ +package logger + +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 WorkspaceLoggerCreateOrUpdateOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *LoggerContract +} + +type WorkspaceLoggerCreateOrUpdateOperationOptions struct { + IfMatch *string +} + +func DefaultWorkspaceLoggerCreateOrUpdateOperationOptions() WorkspaceLoggerCreateOrUpdateOperationOptions { + return WorkspaceLoggerCreateOrUpdateOperationOptions{} +} + +func (o WorkspaceLoggerCreateOrUpdateOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + if o.IfMatch != nil { + out.Append("If-Match", fmt.Sprintf("%v", *o.IfMatch)) + } + return &out +} + +func (o WorkspaceLoggerCreateOrUpdateOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o WorkspaceLoggerCreateOrUpdateOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + + return &out +} + +// WorkspaceLoggerCreateOrUpdate ... +func (c LoggerClient) WorkspaceLoggerCreateOrUpdate(ctx context.Context, id WorkspaceLoggerId, input LoggerContract, options WorkspaceLoggerCreateOrUpdateOperationOptions) (result WorkspaceLoggerCreateOrUpdateOperationResponse, 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 LoggerContract + 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/apimanagement/2024-05-01/logger/method_workspaceloggerdelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/logger/method_workspaceloggerdelete.go new file mode 100644 index 000000000000..da999d0b4eb2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/logger/method_workspaceloggerdelete.go @@ -0,0 +1,77 @@ +package logger + +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 WorkspaceLoggerDeleteOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +type WorkspaceLoggerDeleteOperationOptions struct { + IfMatch *string +} + +func DefaultWorkspaceLoggerDeleteOperationOptions() WorkspaceLoggerDeleteOperationOptions { + return WorkspaceLoggerDeleteOperationOptions{} +} + +func (o WorkspaceLoggerDeleteOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + if o.IfMatch != nil { + out.Append("If-Match", fmt.Sprintf("%v", *o.IfMatch)) + } + return &out +} + +func (o WorkspaceLoggerDeleteOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o WorkspaceLoggerDeleteOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + + return &out +} + +// WorkspaceLoggerDelete ... +func (c LoggerClient) WorkspaceLoggerDelete(ctx context.Context, id WorkspaceLoggerId, options WorkspaceLoggerDeleteOperationOptions) (result WorkspaceLoggerDeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + 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 + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/logger/method_workspaceloggerget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/logger/method_workspaceloggerget.go new file mode 100644 index 000000000000..72a7d01a50f7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/logger/method_workspaceloggerget.go @@ -0,0 +1,53 @@ +package logger + +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 WorkspaceLoggerGetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *LoggerContract +} + +// WorkspaceLoggerGet ... +func (c LoggerClient) WorkspaceLoggerGet(ctx context.Context, id WorkspaceLoggerId) (result WorkspaceLoggerGetOperationResponse, 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 LoggerContract + 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/apimanagement/2024-05-01/logger/method_workspaceloggergetentitytag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/logger/method_workspaceloggergetentitytag.go new file mode 100644 index 000000000000..92850b0479ad --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/logger/method_workspaceloggergetentitytag.go @@ -0,0 +1,46 @@ +package logger + +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 WorkspaceLoggerGetEntityTagOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// WorkspaceLoggerGetEntityTag ... +func (c LoggerClient) WorkspaceLoggerGetEntityTag(ctx context.Context, id WorkspaceLoggerId) (result WorkspaceLoggerGetEntityTagOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodHead, + 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/apimanagement/2024-05-01/logger/method_workspaceloggerlistbyworkspace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/logger/method_workspaceloggerlistbyworkspace.go new file mode 100644 index 000000000000..2915ee0a4be7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/logger/method_workspaceloggerlistbyworkspace.go @@ -0,0 +1,142 @@ +package logger + +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 WorkspaceLoggerListByWorkspaceOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]LoggerContract +} + +type WorkspaceLoggerListByWorkspaceCompleteResult struct { + LatestHttpResponse *http.Response + Items []LoggerContract +} + +type WorkspaceLoggerListByWorkspaceOperationOptions struct { + Filter *string + Skip *int64 + Top *int64 +} + +func DefaultWorkspaceLoggerListByWorkspaceOperationOptions() WorkspaceLoggerListByWorkspaceOperationOptions { + return WorkspaceLoggerListByWorkspaceOperationOptions{} +} + +func (o WorkspaceLoggerListByWorkspaceOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o WorkspaceLoggerListByWorkspaceOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o WorkspaceLoggerListByWorkspaceOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Filter != nil { + out.Append("$filter", fmt.Sprintf("%v", *o.Filter)) + } + if o.Skip != nil { + out.Append("$skip", fmt.Sprintf("%v", *o.Skip)) + } + if o.Top != nil { + out.Append("$top", fmt.Sprintf("%v", *o.Top)) + } + return &out +} + +type WorkspaceLoggerListByWorkspaceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkspaceLoggerListByWorkspaceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// WorkspaceLoggerListByWorkspace ... +func (c LoggerClient) WorkspaceLoggerListByWorkspace(ctx context.Context, id WorkspaceId, options WorkspaceLoggerListByWorkspaceOperationOptions) (result WorkspaceLoggerListByWorkspaceOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + OptionsObject: options, + Pager: &WorkspaceLoggerListByWorkspaceCustomPager{}, + Path: fmt.Sprintf("%s/loggers", 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 *[]LoggerContract `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// WorkspaceLoggerListByWorkspaceComplete retrieves all the results into a single object +func (c LoggerClient) WorkspaceLoggerListByWorkspaceComplete(ctx context.Context, id WorkspaceId, options WorkspaceLoggerListByWorkspaceOperationOptions) (WorkspaceLoggerListByWorkspaceCompleteResult, error) { + return c.WorkspaceLoggerListByWorkspaceCompleteMatchingPredicate(ctx, id, options, LoggerContractOperationPredicate{}) +} + +// WorkspaceLoggerListByWorkspaceCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c LoggerClient) WorkspaceLoggerListByWorkspaceCompleteMatchingPredicate(ctx context.Context, id WorkspaceId, options WorkspaceLoggerListByWorkspaceOperationOptions, predicate LoggerContractOperationPredicate) (result WorkspaceLoggerListByWorkspaceCompleteResult, err error) { + items := make([]LoggerContract, 0) + + resp, err := c.WorkspaceLoggerListByWorkspace(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 = WorkspaceLoggerListByWorkspaceCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/logger/method_workspaceloggerupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/logger/method_workspaceloggerupdate.go new file mode 100644 index 000000000000..b5b6237b7cfb --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/logger/method_workspaceloggerupdate.go @@ -0,0 +1,87 @@ +package logger + +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 WorkspaceLoggerUpdateOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *LoggerContract +} + +type WorkspaceLoggerUpdateOperationOptions struct { + IfMatch *string +} + +func DefaultWorkspaceLoggerUpdateOperationOptions() WorkspaceLoggerUpdateOperationOptions { + return WorkspaceLoggerUpdateOperationOptions{} +} + +func (o WorkspaceLoggerUpdateOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + if o.IfMatch != nil { + out.Append("If-Match", fmt.Sprintf("%v", *o.IfMatch)) + } + return &out +} + +func (o WorkspaceLoggerUpdateOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o WorkspaceLoggerUpdateOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + + return &out +} + +// WorkspaceLoggerUpdate ... +func (c LoggerClient) WorkspaceLoggerUpdate(ctx context.Context, id WorkspaceLoggerId, input LoggerUpdateContract, options WorkspaceLoggerUpdateOperationOptions) (result WorkspaceLoggerUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPatch, + 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 LoggerContract + 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/apimanagement/2023-05-01-preview/logger/model_loggercontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/logger/model_loggercontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/logger/model_loggercontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/logger/model_loggercontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/logger/model_loggercontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/logger/model_loggercontractproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/logger/model_loggercontractproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/logger/model_loggercontractproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/logger/model_loggerupdatecontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/logger/model_loggerupdatecontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/logger/model_loggerupdatecontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/logger/model_loggerupdatecontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/logger/model_loggerupdateparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/logger/model_loggerupdateparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/logger/model_loggerupdateparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/logger/model_loggerupdateparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/logger/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/logger/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/logger/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/logger/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/logger/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/logger/version.go similarity index 67% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/logger/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/logger/version.go index f20c4f2203bb..9f9d15330a52 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/logger/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/logger/version.go @@ -3,8 +3,8 @@ package logger // 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-05-01-preview" +const defaultApiVersion = "2024-05-01" func userAgent() string { - return "hashicorp/go-azure-sdk/logger/2022-08-01" + return "hashicorp/go-azure-sdk/logger/2024-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/namedvalue/README.md similarity index 80% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/namedvalue/README.md index 3420b2999992..011d7f60a3c8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/namedvalue/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/namedvalue` Documentation -The `namedvalue` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2023-05-01-preview`). +The `namedvalue` SDK allows for interaction with Azure Resource Manager `apimanagement` (API Version `2024-05-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/apimanagement/2023-05-01-preview/namedvalue" +import "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/namedvalue" ``` @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := namedvalue.NewNamedValueID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "namedValueIdValue") +id := namedvalue.NewNamedValueID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "namedValueId") payload := namedvalue.NamedValueCreateContract{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload, namedvalue.DefaultCrea ```go ctx := context.TODO() -id := namedvalue.NewNamedValueID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "namedValueIdValue") +id := namedvalue.NewNamedValueID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "namedValueId") read, err := client.Delete(ctx, id, namedvalue.DefaultDeleteOperationOptions()) if err != nil { @@ -57,7 +57,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := namedvalue.NewNamedValueID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "namedValueIdValue") +id := namedvalue.NewNamedValueID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "namedValueId") read, err := client.Get(ctx, id) if err != nil { @@ -73,7 +73,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := namedvalue.NewNamedValueID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "namedValueIdValue") +id := namedvalue.NewNamedValueID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "namedValueId") read, err := client.GetEntityTag(ctx, id) if err != nil { @@ -89,7 +89,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := namedvalue.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue") +id := namedvalue.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") // alternatively `client.ListByService(ctx, id, namedvalue.DefaultListByServiceOperationOptions())` can be used to do batched pagination items, err := client.ListByServiceComplete(ctx, id, namedvalue.DefaultListByServiceOperationOptions()) @@ -106,7 +106,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := namedvalue.NewNamedValueID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "namedValueIdValue") +id := namedvalue.NewNamedValueID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "namedValueId") read, err := client.ListValue(ctx, id) if err != nil { @@ -122,7 +122,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := namedvalue.NewNamedValueID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "namedValueIdValue") +id := namedvalue.NewNamedValueID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "namedValueId") if err := client.RefreshSecretThenPoll(ctx, id); err != nil { // handle the error @@ -134,7 +134,7 @@ if err := client.RefreshSecretThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := namedvalue.NewNamedValueID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "namedValueIdValue") +id := namedvalue.NewNamedValueID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "namedValueId") payload := namedvalue.NamedValueUpdateParameters{ // ... @@ -151,7 +151,7 @@ if err := client.UpdateThenPoll(ctx, id, payload, namedvalue.DefaultUpdateOperat ```go ctx := context.TODO() -id := namedvalue.NewWorkspaceNamedValueID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "namedValueIdValue") +id := namedvalue.NewWorkspaceNamedValueID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "namedValueId") payload := namedvalue.NamedValueCreateContract{ // ... @@ -168,7 +168,7 @@ if err := client.WorkspaceNamedValueCreateOrUpdateThenPoll(ctx, id, payload, nam ```go ctx := context.TODO() -id := namedvalue.NewWorkspaceNamedValueID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "namedValueIdValue") +id := namedvalue.NewWorkspaceNamedValueID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "namedValueId") read, err := client.WorkspaceNamedValueDelete(ctx, id, namedvalue.DefaultWorkspaceNamedValueDeleteOperationOptions()) if err != nil { @@ -184,7 +184,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := namedvalue.NewWorkspaceNamedValueID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "namedValueIdValue") +id := namedvalue.NewWorkspaceNamedValueID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "namedValueId") read, err := client.WorkspaceNamedValueGet(ctx, id) if err != nil { @@ -200,7 +200,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := namedvalue.NewWorkspaceNamedValueID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "namedValueIdValue") +id := namedvalue.NewWorkspaceNamedValueID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "namedValueId") read, err := client.WorkspaceNamedValueGetEntityTag(ctx, id) if err != nil { @@ -216,7 +216,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := namedvalue.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue") +id := namedvalue.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId") // alternatively `client.WorkspaceNamedValueListByService(ctx, id, namedvalue.DefaultWorkspaceNamedValueListByServiceOperationOptions())` can be used to do batched pagination items, err := client.WorkspaceNamedValueListByServiceComplete(ctx, id, namedvalue.DefaultWorkspaceNamedValueListByServiceOperationOptions()) @@ -233,7 +233,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := namedvalue.NewWorkspaceNamedValueID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "namedValueIdValue") +id := namedvalue.NewWorkspaceNamedValueID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "namedValueId") read, err := client.WorkspaceNamedValueListValue(ctx, id) if err != nil { @@ -249,7 +249,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := namedvalue.NewWorkspaceNamedValueID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "namedValueIdValue") +id := namedvalue.NewWorkspaceNamedValueID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "namedValueId") if err := client.WorkspaceNamedValueRefreshSecretThenPoll(ctx, id); err != nil { // handle the error @@ -261,7 +261,7 @@ if err := client.WorkspaceNamedValueRefreshSecretThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := namedvalue.NewWorkspaceNamedValueID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "namedValueIdValue") +id := namedvalue.NewWorkspaceNamedValueID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "namedValueId") payload := namedvalue.NamedValueUpdateParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/namedvalue/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/namedvalue/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/namedvalue/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/namedvalue/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/id_namedvalue.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/namedvalue/id_namedvalue.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/id_namedvalue.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/namedvalue/id_namedvalue.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/id_service.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/namedvalue/id_service.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/id_service.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/namedvalue/id_service.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/id_workspace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/namedvalue/id_workspace.go similarity index 94% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/id_workspace.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/namedvalue/id_workspace.go index 7487f0004691..8a43cd925a44 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/id_workspace.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/namedvalue/id_workspace.go @@ -44,7 +44,7 @@ func ParseWorkspaceID(input string) (*WorkspaceId, error) { } id := WorkspaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseWorkspaceIDInsensitively(input string) (*WorkspaceId, error) { } id := WorkspaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id WorkspaceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), - resourceids.UserSpecifiedSegment("workspaceId", "workspaceIdValue"), + resourceids.UserSpecifiedSegment("workspaceId", "workspaceId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/id_workspacenamedvalue.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/namedvalue/id_workspacenamedvalue.go similarity index 95% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/id_workspacenamedvalue.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/namedvalue/id_workspacenamedvalue.go index 44f55e1b20ad..bbab1c2930b3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/id_workspacenamedvalue.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/namedvalue/id_workspacenamedvalue.go @@ -46,7 +46,7 @@ func ParseWorkspaceNamedValueID(input string) (*WorkspaceNamedValueId, error) { } id := WorkspaceNamedValueId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseWorkspaceNamedValueIDInsensitively(input string) (*WorkspaceNamedValue } id := WorkspaceNamedValueId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id WorkspaceNamedValueId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), - resourceids.UserSpecifiedSegment("workspaceId", "workspaceIdValue"), + resourceids.UserSpecifiedSegment("workspaceId", "workspaceId"), resourceids.StaticSegment("staticNamedValues", "namedValues", "namedValues"), - resourceids.UserSpecifiedSegment("namedValueId", "namedValueIdValue"), + resourceids.UserSpecifiedSegment("namedValueId", "namedValueId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/namedvalue/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/namedvalue/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/namedvalue/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/namedvalue/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/namedvalue/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/namedvalue/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_getentitytag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/namedvalue/method_getentitytag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_getentitytag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/namedvalue/method_getentitytag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_listbyservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/namedvalue/method_listbyservice.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_listbyservice.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/namedvalue/method_listbyservice.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_listvalue.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/namedvalue/method_listvalue.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_listvalue.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/namedvalue/method_listvalue.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_refreshsecret.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/namedvalue/method_refreshsecret.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_refreshsecret.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/namedvalue/method_refreshsecret.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/namedvalue/method_update.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_update.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/namedvalue/method_update.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_workspacenamedvaluecreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/namedvalue/method_workspacenamedvaluecreateorupdate.go similarity index 99% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_workspacenamedvaluecreateorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/namedvalue/method_workspacenamedvaluecreateorupdate.go index 84290f98fbb2..127d8eef85f2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_workspacenamedvaluecreateorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/namedvalue/method_workspacenamedvaluecreateorupdate.go @@ -39,6 +39,7 @@ func (o WorkspaceNamedValueCreateOrUpdateOperationOptions) ToHeaders() *client.H func (o WorkspaceNamedValueCreateOrUpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_workspacenamedvaluedelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/namedvalue/method_workspacenamedvaluedelete.go similarity index 99% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_workspacenamedvaluedelete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/namedvalue/method_workspacenamedvaluedelete.go index 7d05e234c48f..903ae6bbf4a0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_workspacenamedvaluedelete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/namedvalue/method_workspacenamedvaluedelete.go @@ -35,6 +35,7 @@ func (o WorkspaceNamedValueDeleteOperationOptions) ToHeaders() *client.Headers { func (o WorkspaceNamedValueDeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_workspacenamedvalueget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/namedvalue/method_workspacenamedvalueget.go similarity index 99% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_workspacenamedvalueget.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/namedvalue/method_workspacenamedvalueget.go index fd48731656e4..499da89fe82d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_workspacenamedvalueget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/namedvalue/method_workspacenamedvalueget.go @@ -45,7 +45,6 @@ func (c NamedValueClient) WorkspaceNamedValueGet(ctx context.Context, id Workspa var model NamedValueContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_workspacenamedvaluegetentitytag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/namedvalue/method_workspacenamedvaluegetentitytag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_workspacenamedvaluegetentitytag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/namedvalue/method_workspacenamedvaluegetentitytag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_workspacenamedvaluelistbyservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/namedvalue/method_workspacenamedvaluelistbyservice.go similarity index 99% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_workspacenamedvaluelistbyservice.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/namedvalue/method_workspacenamedvaluelistbyservice.go index 87a17e3f92fb..0cf463c799d3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_workspacenamedvaluelistbyservice.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/namedvalue/method_workspacenamedvaluelistbyservice.go @@ -42,6 +42,7 @@ func (o WorkspaceNamedValueListByServiceOperationOptions) ToHeaders() *client.He func (o WorkspaceNamedValueListByServiceOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_workspacenamedvaluelistvalue.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/namedvalue/method_workspacenamedvaluelistvalue.go similarity index 99% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_workspacenamedvaluelistvalue.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/namedvalue/method_workspacenamedvaluelistvalue.go index ced0d6c16004..70be73213420 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_workspacenamedvaluelistvalue.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/namedvalue/method_workspacenamedvaluelistvalue.go @@ -46,7 +46,6 @@ func (c NamedValueClient) WorkspaceNamedValueListValue(ctx context.Context, id W var model NamedValueSecretContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_workspacenamedvaluerefreshsecret.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/namedvalue/method_workspacenamedvaluerefreshsecret.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_workspacenamedvaluerefreshsecret.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/namedvalue/method_workspacenamedvaluerefreshsecret.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_workspacenamedvalueupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/namedvalue/method_workspacenamedvalueupdate.go similarity index 99% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_workspacenamedvalueupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/namedvalue/method_workspacenamedvalueupdate.go index 2767761302aa..866a931165bb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_workspacenamedvalueupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/namedvalue/method_workspacenamedvalueupdate.go @@ -39,6 +39,7 @@ func (o WorkspaceNamedValueUpdateOperationOptions) ToHeaders() *client.Headers { func (o WorkspaceNamedValueUpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/model_keyvaultcontractcreateproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/namedvalue/model_keyvaultcontractcreateproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/model_keyvaultcontractcreateproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/namedvalue/model_keyvaultcontractcreateproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/model_keyvaultcontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/namedvalue/model_keyvaultcontractproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/model_keyvaultcontractproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/namedvalue/model_keyvaultcontractproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/model_keyvaultlastaccessstatuscontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/namedvalue/model_keyvaultlastaccessstatuscontractproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/model_keyvaultlastaccessstatuscontractproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/namedvalue/model_keyvaultlastaccessstatuscontractproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/model_namedvaluecontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/namedvalue/model_namedvaluecontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/model_namedvaluecontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/namedvalue/model_namedvaluecontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/model_namedvaluecontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/namedvalue/model_namedvaluecontractproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/model_namedvaluecontractproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/namedvalue/model_namedvaluecontractproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/model_namedvaluecreatecontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/namedvalue/model_namedvaluecreatecontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/model_namedvaluecreatecontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/namedvalue/model_namedvaluecreatecontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/model_namedvaluecreatecontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/namedvalue/model_namedvaluecreatecontractproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/model_namedvaluecreatecontractproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/namedvalue/model_namedvaluecreatecontractproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/model_namedvaluesecretcontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/namedvalue/model_namedvaluesecretcontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/model_namedvaluesecretcontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/namedvalue/model_namedvaluesecretcontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/model_namedvalueupdateparameterproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/namedvalue/model_namedvalueupdateparameterproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/model_namedvalueupdateparameterproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/namedvalue/model_namedvalueupdateparameterproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/model_namedvalueupdateparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/namedvalue/model_namedvalueupdateparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/model_namedvalueupdateparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/namedvalue/model_namedvalueupdateparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/namedvalue/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/namedvalue/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/namedvalue/version.go similarity index 66% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/namedvalue/version.go index cdb2b8f35423..07876df6b3de 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/namedvalue/version.go @@ -3,8 +3,8 @@ package namedvalue // 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-05-01-preview" +const defaultApiVersion = "2024-05-01" func userAgent() string { - return "hashicorp/go-azure-sdk/namedvalue/2022-08-01" + return "hashicorp/go-azure-sdk/namedvalue/2024-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/notificationrecipientemail/README.md similarity index 86% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/notificationrecipientemail/README.md index 15c15a9d9427..491c4b75fa3d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/notificationrecipientemail/README.md @@ -1,15 +1,17 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail` Documentation -The `notificationrecipientemail` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2023-05-01-preview`). +## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/notificationrecipientemail` Documentation + +The `notificationrecipientemail` SDK allows for interaction with Azure Resource Manager `apimanagement` (API Version `2024-05-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/apimanagement/2023-05-01-preview/notificationrecipientemail" +import "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/notificationrecipientemail" ``` + ### Client Initialization ```go @@ -17,11 +19,12 @@ client := notificationrecipientemail.NewNotificationRecipientEmailClientWithBase client.Client.Authorizer = authorizer ``` + ### Example Usage: `NotificationRecipientEmailClient.CheckEntityExists` ```go ctx := context.TODO() -id := notificationrecipientemail.NewRecipientEmailID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "AccountClosedPublisher", "email") +id := notificationrecipientemail.NewRecipientEmailID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "AccountClosedPublisher", "recipientEmailName") read, err := client.CheckEntityExists(ctx, id) if err != nil { @@ -32,11 +35,12 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `NotificationRecipientEmailClient.CreateOrUpdate` ```go ctx := context.TODO() -id := notificationrecipientemail.NewRecipientEmailID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "AccountClosedPublisher", "email") +id := notificationrecipientemail.NewRecipientEmailID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "AccountClosedPublisher", "recipientEmailName") read, err := client.CreateOrUpdate(ctx, id) if err != nil { @@ -47,11 +51,12 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `NotificationRecipientEmailClient.Delete` ```go ctx := context.TODO() -id := notificationrecipientemail.NewRecipientEmailID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "AccountClosedPublisher", "email") +id := notificationrecipientemail.NewRecipientEmailID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "AccountClosedPublisher", "recipientEmailName") read, err := client.Delete(ctx, id) if err != nil { @@ -62,6 +67,7 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `NotificationRecipientEmailClient.ListByNotification` ```go @@ -78,11 +84,12 @@ for _, item := range items { } ``` + ### Example Usage: `NotificationRecipientEmailClient.WorkspaceNotificationRecipientEmailCheckEntityExists` ```go ctx := context.TODO() -id := notificationrecipientemail.NewNotificationRecipientEmailID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "AccountClosedPublisher", "recipientEmailValue") +id := notificationrecipientemail.NewNotificationRecipientEmailID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "AccountClosedPublisher", "recipientEmailName") read, err := client.WorkspaceNotificationRecipientEmailCheckEntityExists(ctx, id) if err != nil { @@ -93,11 +100,12 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `NotificationRecipientEmailClient.WorkspaceNotificationRecipientEmailCreateOrUpdate` ```go ctx := context.TODO() -id := notificationrecipientemail.NewNotificationRecipientEmailID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "AccountClosedPublisher", "recipientEmailValue") +id := notificationrecipientemail.NewNotificationRecipientEmailID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "AccountClosedPublisher", "recipientEmailName") read, err := client.WorkspaceNotificationRecipientEmailCreateOrUpdate(ctx, id) if err != nil { @@ -108,11 +116,12 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `NotificationRecipientEmailClient.WorkspaceNotificationRecipientEmailDelete` ```go ctx := context.TODO() -id := notificationrecipientemail.NewNotificationRecipientEmailID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "AccountClosedPublisher", "recipientEmailValue") +id := notificationrecipientemail.NewNotificationRecipientEmailID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "AccountClosedPublisher", "recipientEmailName") read, err := client.WorkspaceNotificationRecipientEmailDelete(ctx, id) if err != nil { @@ -123,11 +132,12 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `NotificationRecipientEmailClient.WorkspaceNotificationRecipientEmailListByNotification` ```go ctx := context.TODO() -id := notificationrecipientemail.NewNotificationNotificationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "AccountClosedPublisher") +id := notificationrecipientemail.NewNotificationNotificationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "AccountClosedPublisher") // alternatively `client.WorkspaceNotificationRecipientEmailListByNotification(ctx, id)` can be used to do batched pagination items, err := client.WorkspaceNotificationRecipientEmailListByNotificationComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/notificationrecipientemail/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/notificationrecipientemail/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/notificationrecipientemail/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/notificationrecipientemail/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail/id_notification.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/notificationrecipientemail/id_notification.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail/id_notification.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/notificationrecipientemail/id_notification.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail/id_notificationnotification.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/notificationrecipientemail/id_notificationnotification.go similarity index 95% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail/id_notificationnotification.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/notificationrecipientemail/id_notificationnotification.go index b5257846bad0..5b696751f614 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail/id_notificationnotification.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/notificationrecipientemail/id_notificationnotification.go @@ -46,7 +46,7 @@ func ParseNotificationNotificationID(input string) (*NotificationNotificationId, } id := NotificationNotificationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseNotificationNotificationIDInsensitively(input string) (*NotificationNo } id := NotificationNotificationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -135,9 +135,9 @@ func (id NotificationNotificationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), - resourceids.UserSpecifiedSegment("workspaceId", "workspaceIdValue"), + resourceids.UserSpecifiedSegment("workspaceId", "workspaceId"), resourceids.StaticSegment("staticNotifications", "notifications", "notifications"), resourceids.ConstantSegment("notificationName", PossibleValuesForNotificationName(), "AccountClosedPublisher"), } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail/id_notificationrecipientemail.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/notificationrecipientemail/id_notificationrecipientemail.go similarity index 96% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail/id_notificationrecipientemail.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/notificationrecipientemail/id_notificationrecipientemail.go index 417bba3220c4..9d7956ead0c9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail/id_notificationrecipientemail.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/notificationrecipientemail/id_notificationrecipientemail.go @@ -48,7 +48,7 @@ func ParseNotificationRecipientEmailID(input string) (*NotificationRecipientEmai } id := NotificationRecipientEmailId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -65,7 +65,7 @@ func ParseNotificationRecipientEmailIDInsensitively(input string) (*Notification } id := NotificationRecipientEmailId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -141,13 +141,13 @@ func (id NotificationRecipientEmailId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), - resourceids.UserSpecifiedSegment("workspaceId", "workspaceIdValue"), + resourceids.UserSpecifiedSegment("workspaceId", "workspaceId"), resourceids.StaticSegment("staticNotifications", "notifications", "notifications"), resourceids.ConstantSegment("notificationName", PossibleValuesForNotificationName(), "AccountClosedPublisher"), resourceids.StaticSegment("staticRecipientEmails", "recipientEmails", "recipientEmails"), - resourceids.UserSpecifiedSegment("recipientEmailName", "recipientEmailValue"), + resourceids.UserSpecifiedSegment("recipientEmailName", "recipientEmailName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail/id_recipientemail.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/notificationrecipientemail/id_recipientemail.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail/id_recipientemail.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/notificationrecipientemail/id_recipientemail.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail/method_checkentityexists.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/notificationrecipientemail/method_checkentityexists.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail/method_checkentityexists.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/notificationrecipientemail/method_checkentityexists.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/notificationrecipientemail/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/notificationrecipientemail/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/notificationrecipientemail/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/notificationrecipientemail/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail/method_listbynotification.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/notificationrecipientemail/method_listbynotification.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail/method_listbynotification.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/notificationrecipientemail/method_listbynotification.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail/method_workspacenotificationrecipientemailcheckentityexists.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/notificationrecipientemail/method_workspacenotificationrecipientemailcheckentityexists.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail/method_workspacenotificationrecipientemailcheckentityexists.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/notificationrecipientemail/method_workspacenotificationrecipientemailcheckentityexists.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail/method_workspacenotificationrecipientemailcreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/notificationrecipientemail/method_workspacenotificationrecipientemailcreateorupdate.go similarity index 99% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail/method_workspacenotificationrecipientemailcreateorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/notificationrecipientemail/method_workspacenotificationrecipientemailcreateorupdate.go index a58726e1c6c4..ff5d1b65a2ab 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail/method_workspacenotificationrecipientemailcreateorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/notificationrecipientemail/method_workspacenotificationrecipientemailcreateorupdate.go @@ -46,7 +46,6 @@ func (c NotificationRecipientEmailClient) WorkspaceNotificationRecipientEmailCre var model RecipientEmailContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail/method_workspacenotificationrecipientemaildelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/notificationrecipientemail/method_workspacenotificationrecipientemaildelete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail/method_workspacenotificationrecipientemaildelete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/notificationrecipientemail/method_workspacenotificationrecipientemaildelete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail/method_workspacenotificationrecipientemaillistbynotification.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/notificationrecipientemail/method_workspacenotificationrecipientemaillistbynotification.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail/method_workspacenotificationrecipientemaillistbynotification.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/notificationrecipientemail/method_workspacenotificationrecipientemaillistbynotification.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail/model_recipientemailcontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/notificationrecipientemail/model_recipientemailcontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail/model_recipientemailcontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/notificationrecipientemail/model_recipientemailcontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail/model_recipientemailcontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/notificationrecipientemail/model_recipientemailcontractproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail/model_recipientemailcontractproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/notificationrecipientemail/model_recipientemailcontractproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/notificationrecipientemail/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/notificationrecipientemail/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/notificationrecipientemail/version.go similarity index 65% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/notificationrecipientemail/version.go index 5616153475fb..7e431a9bae1b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/notificationrecipientemail/version.go @@ -3,8 +3,8 @@ package notificationrecipientemail // 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-05-01-preview" +const defaultApiVersion = "2024-05-01" func userAgent() string { - return "hashicorp/go-azure-sdk/notificationrecipientemail/2022-08-01" + return "hashicorp/go-azure-sdk/notificationrecipientemail/2024-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/notificationrecipientuser/README.md similarity index 89% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/notificationrecipientuser/README.md index ef9abfce5e8c..dfd12d852e70 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/notificationrecipientuser/README.md @@ -1,15 +1,17 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser` Documentation -The `notificationrecipientuser` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2023-05-01-preview`). +## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/notificationrecipientuser` Documentation + +The `notificationrecipientuser` SDK allows for interaction with Azure Resource Manager `apimanagement` (API Version `2024-05-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/apimanagement/2023-05-01-preview/notificationrecipientuser" +import "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/notificationrecipientuser" ``` + ### Client Initialization ```go @@ -17,6 +19,7 @@ client := notificationrecipientuser.NewNotificationRecipientUserClientWithBaseUR client.Client.Authorizer = authorizer ``` + ### Example Usage: `NotificationRecipientUserClient.CheckEntityExists` ```go @@ -32,6 +35,7 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `NotificationRecipientUserClient.CreateOrUpdate` ```go @@ -47,6 +51,7 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `NotificationRecipientUserClient.Delete` ```go @@ -62,6 +67,7 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `NotificationRecipientUserClient.ListByNotification` ```go @@ -78,11 +84,12 @@ for _, item := range items { } ``` + ### Example Usage: `NotificationRecipientUserClient.WorkspaceNotificationRecipientUserCheckEntityExists` ```go ctx := context.TODO() -id := notificationrecipientuser.NewNotificationRecipientUserID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "AccountClosedPublisher", "userIdValue") +id := notificationrecipientuser.NewNotificationRecipientUserID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "AccountClosedPublisher", "userId") read, err := client.WorkspaceNotificationRecipientUserCheckEntityExists(ctx, id) if err != nil { @@ -93,11 +100,12 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `NotificationRecipientUserClient.WorkspaceNotificationRecipientUserCreateOrUpdate` ```go ctx := context.TODO() -id := notificationrecipientuser.NewNotificationRecipientUserID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "AccountClosedPublisher", "userIdValue") +id := notificationrecipientuser.NewNotificationRecipientUserID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "AccountClosedPublisher", "userId") read, err := client.WorkspaceNotificationRecipientUserCreateOrUpdate(ctx, id) if err != nil { @@ -108,11 +116,12 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `NotificationRecipientUserClient.WorkspaceNotificationRecipientUserDelete` ```go ctx := context.TODO() -id := notificationrecipientuser.NewNotificationRecipientUserID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "AccountClosedPublisher", "userIdValue") +id := notificationrecipientuser.NewNotificationRecipientUserID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "AccountClosedPublisher", "userId") read, err := client.WorkspaceNotificationRecipientUserDelete(ctx, id) if err != nil { @@ -123,11 +132,12 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `NotificationRecipientUserClient.WorkspaceNotificationRecipientUserListByNotification` ```go ctx := context.TODO() -id := notificationrecipientuser.NewNotificationNotificationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "AccountClosedPublisher") +id := notificationrecipientuser.NewNotificationNotificationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "AccountClosedPublisher") // alternatively `client.WorkspaceNotificationRecipientUserListByNotification(ctx, id)` can be used to do batched pagination items, err := client.WorkspaceNotificationRecipientUserListByNotificationComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/notificationrecipientuser/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/notificationrecipientuser/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/notificationrecipientuser/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/notificationrecipientuser/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser/id_notification.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/notificationrecipientuser/id_notification.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser/id_notification.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/notificationrecipientuser/id_notification.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser/id_notificationnotification.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/notificationrecipientuser/id_notificationnotification.go similarity index 95% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser/id_notificationnotification.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/notificationrecipientuser/id_notificationnotification.go index 86345fd00476..ce774cbad908 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser/id_notificationnotification.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/notificationrecipientuser/id_notificationnotification.go @@ -46,7 +46,7 @@ func ParseNotificationNotificationID(input string) (*NotificationNotificationId, } id := NotificationNotificationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseNotificationNotificationIDInsensitively(input string) (*NotificationNo } id := NotificationNotificationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -135,9 +135,9 @@ func (id NotificationNotificationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), - resourceids.UserSpecifiedSegment("workspaceId", "workspaceIdValue"), + resourceids.UserSpecifiedSegment("workspaceId", "workspaceId"), resourceids.StaticSegment("staticNotifications", "notifications", "notifications"), resourceids.ConstantSegment("notificationName", PossibleValuesForNotificationName(), "AccountClosedPublisher"), } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser/id_notificationrecipientuser.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/notificationrecipientuser/id_notificationrecipientuser.go similarity index 95% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser/id_notificationrecipientuser.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/notificationrecipientuser/id_notificationrecipientuser.go index abd829fc50ba..b0e20a14127a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser/id_notificationrecipientuser.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/notificationrecipientuser/id_notificationrecipientuser.go @@ -48,7 +48,7 @@ func ParseNotificationRecipientUserID(input string) (*NotificationRecipientUserI } id := NotificationRecipientUserId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -65,7 +65,7 @@ func ParseNotificationRecipientUserIDInsensitively(input string) (*NotificationR } id := NotificationRecipientUserId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -141,13 +141,13 @@ func (id NotificationRecipientUserId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), - resourceids.UserSpecifiedSegment("workspaceId", "workspaceIdValue"), + resourceids.UserSpecifiedSegment("workspaceId", "workspaceId"), resourceids.StaticSegment("staticNotifications", "notifications", "notifications"), resourceids.ConstantSegment("notificationName", PossibleValuesForNotificationName(), "AccountClosedPublisher"), resourceids.StaticSegment("staticRecipientUsers", "recipientUsers", "recipientUsers"), - resourceids.UserSpecifiedSegment("userId", "userIdValue"), + resourceids.UserSpecifiedSegment("userId", "userId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser/id_recipientuser.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/notificationrecipientuser/id_recipientuser.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser/id_recipientuser.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/notificationrecipientuser/id_recipientuser.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser/method_checkentityexists.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/notificationrecipientuser/method_checkentityexists.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser/method_checkentityexists.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/notificationrecipientuser/method_checkentityexists.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/notificationrecipientuser/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/notificationrecipientuser/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/notificationrecipientuser/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/notificationrecipientuser/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser/method_listbynotification.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/notificationrecipientuser/method_listbynotification.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser/method_listbynotification.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/notificationrecipientuser/method_listbynotification.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser/method_workspacenotificationrecipientusercheckentityexists.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/notificationrecipientuser/method_workspacenotificationrecipientusercheckentityexists.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser/method_workspacenotificationrecipientusercheckentityexists.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/notificationrecipientuser/method_workspacenotificationrecipientusercheckentityexists.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser/method_workspacenotificationrecipientusercreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/notificationrecipientuser/method_workspacenotificationrecipientusercreateorupdate.go similarity index 99% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser/method_workspacenotificationrecipientusercreateorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/notificationrecipientuser/method_workspacenotificationrecipientusercreateorupdate.go index ee9639349769..000d95f83c10 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser/method_workspacenotificationrecipientusercreateorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/notificationrecipientuser/method_workspacenotificationrecipientusercreateorupdate.go @@ -46,7 +46,6 @@ func (c NotificationRecipientUserClient) WorkspaceNotificationRecipientUserCreat var model RecipientUserContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser/method_workspacenotificationrecipientuserdelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/notificationrecipientuser/method_workspacenotificationrecipientuserdelete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser/method_workspacenotificationrecipientuserdelete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/notificationrecipientuser/method_workspacenotificationrecipientuserdelete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser/method_workspacenotificationrecipientuserlistbynotification.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/notificationrecipientuser/method_workspacenotificationrecipientuserlistbynotification.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser/method_workspacenotificationrecipientuserlistbynotification.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/notificationrecipientuser/method_workspacenotificationrecipientuserlistbynotification.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser/model_recipientusercontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/notificationrecipientuser/model_recipientusercontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser/model_recipientusercontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/notificationrecipientuser/model_recipientusercontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser/model_recipientuserscontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/notificationrecipientuser/model_recipientuserscontractproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser/model_recipientuserscontractproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/notificationrecipientuser/model_recipientuserscontractproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/notificationrecipientuser/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/notificationrecipientuser/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/notificationrecipientuser/version.go similarity index 65% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/notificationrecipientuser/version.go index ea9719cb145d..99ad65262604 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/notificationrecipientuser/version.go @@ -3,8 +3,8 @@ package notificationrecipientuser // 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-05-01-preview" +const defaultApiVersion = "2024-05-01" func userAgent() string { - return "hashicorp/go-azure-sdk/notificationrecipientuser/2022-08-01" + return "hashicorp/go-azure-sdk/notificationrecipientuser/2024-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/openidconnectprovider/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/openidconnectprovider/README.md similarity index 93% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/openidconnectprovider/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/openidconnectprovider/README.md index c51f8a367201..26d58564666b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/openidconnectprovider/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/openidconnectprovider/README.md @@ -1,15 +1,17 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/openidconnectprovider` Documentation -The `openidconnectprovider` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2023-05-01-preview`). +## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/openidconnectprovider` Documentation + +The `openidconnectprovider` SDK allows for interaction with Azure Resource Manager `apimanagement` (API Version `2024-05-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/apimanagement/2023-05-01-preview/openidconnectprovider" +import "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/openidconnectprovider" ``` + ### Client Initialization ```go @@ -17,6 +19,7 @@ client := openidconnectprovider.NewOpenidConnectProviderClientWithBaseURI("https client.Client.Authorizer = authorizer ``` + ### Example Usage: `OpenidConnectProviderClient.CreateOrUpdate` ```go @@ -37,6 +40,7 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `OpenidConnectProviderClient.Delete` ```go @@ -52,6 +56,7 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `OpenidConnectProviderClient.Get` ```go @@ -67,6 +72,7 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `OpenidConnectProviderClient.GetEntityTag` ```go @@ -82,6 +88,7 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `OpenidConnectProviderClient.ListByService` ```go @@ -98,6 +105,7 @@ for _, item := range items { } ``` + ### Example Usage: `OpenidConnectProviderClient.ListSecrets` ```go @@ -113,6 +121,7 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `OpenidConnectProviderClient.Update` ```go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/openidconnectprovider/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/openidconnectprovider/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/openidconnectprovider/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/openidconnectprovider/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/openidconnectprovider/id_openidconnectprovider.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/openidconnectprovider/id_openidconnectprovider.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/openidconnectprovider/id_openidconnectprovider.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/openidconnectprovider/id_openidconnectprovider.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/openidconnectprovider/id_service.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/openidconnectprovider/id_service.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/openidconnectprovider/id_service.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/openidconnectprovider/id_service.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/openidconnectprovider/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/openidconnectprovider/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/openidconnectprovider/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/openidconnectprovider/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/openidconnectprovider/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/openidconnectprovider/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/openidconnectprovider/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/openidconnectprovider/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/openidconnectprovider/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/openidconnectprovider/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/openidconnectprovider/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/openidconnectprovider/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/openidconnectprovider/method_getentitytag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/openidconnectprovider/method_getentitytag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/openidconnectprovider/method_getentitytag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/openidconnectprovider/method_getentitytag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/openidconnectprovider/method_listbyservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/openidconnectprovider/method_listbyservice.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/openidconnectprovider/method_listbyservice.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/openidconnectprovider/method_listbyservice.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/openidconnectprovider/method_listsecrets.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/openidconnectprovider/method_listsecrets.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/openidconnectprovider/method_listsecrets.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/openidconnectprovider/method_listsecrets.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/openidconnectprovider/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/openidconnectprovider/method_update.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/openidconnectprovider/method_update.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/openidconnectprovider/method_update.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/openidconnectprovider/model_clientsecretcontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/openidconnectprovider/model_clientsecretcontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/openidconnectprovider/model_clientsecretcontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/openidconnectprovider/model_clientsecretcontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/openidconnectprovider/model_openidconnectprovidercontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/openidconnectprovider/model_openidconnectprovidercontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/openidconnectprovider/model_openidconnectprovidercontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/openidconnectprovider/model_openidconnectprovidercontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/openidconnectprovider/model_openidconnectprovidercontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/openidconnectprovider/model_openidconnectprovidercontractproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/openidconnectprovider/model_openidconnectprovidercontractproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/openidconnectprovider/model_openidconnectprovidercontractproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/openidconnectprovider/model_openidconnectproviderupdatecontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/openidconnectprovider/model_openidconnectproviderupdatecontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/openidconnectprovider/model_openidconnectproviderupdatecontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/openidconnectprovider/model_openidconnectproviderupdatecontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/openidconnectprovider/model_openidconnectproviderupdatecontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/openidconnectprovider/model_openidconnectproviderupdatecontractproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/openidconnectprovider/model_openidconnectproviderupdatecontractproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/openidconnectprovider/model_openidconnectproviderupdatecontractproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/openidconnectprovider/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/openidconnectprovider/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/openidconnectprovider/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/openidconnectprovider/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/openidconnectprovider/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/openidconnectprovider/version.go similarity index 66% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/openidconnectprovider/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/openidconnectprovider/version.go index 52488788a18d..c1f5fb27abca 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/openidconnectprovider/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/openidconnectprovider/version.go @@ -3,8 +3,8 @@ package openidconnectprovider // 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-05-01-preview" +const defaultApiVersion = "2024-05-01" func userAgent() string { - return "hashicorp/go-azure-sdk/openidconnectprovider/2022-08-01" + return "hashicorp/go-azure-sdk/openidconnectprovider/2024-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policy/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/policy/README.md similarity index 92% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policy/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/policy/README.md index 0bf843c6813c..cc297592b635 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policy/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/policy/README.md @@ -1,15 +1,17 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policy` Documentation -The `policy` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2023-05-01-preview`). +## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/policy` Documentation + +The `policy` SDK allows for interaction with Azure Resource Manager `apimanagement` (API Version `2024-05-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/apimanagement/2023-05-01-preview/policy" +import "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/policy" ``` + ### Client Initialization ```go @@ -17,6 +19,7 @@ client := policy.NewPolicyClientWithBaseURI("https://management.azure.com") client.Client.Authorizer = authorizer ``` + ### Example Usage: `PolicyClient.CreateOrUpdate` ```go @@ -37,6 +40,7 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `PolicyClient.Delete` ```go @@ -52,6 +56,7 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `PolicyClient.Get` ```go @@ -67,6 +72,7 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `PolicyClient.GetEntityTag` ```go @@ -82,6 +88,7 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `PolicyClient.ListByService` ```go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policy/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/policy/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policy/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/policy/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policy/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/policy/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policy/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/policy/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policy/id_service.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/policy/id_service.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policy/id_service.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/policy/id_service.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policy/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/policy/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policy/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/policy/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policy/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/policy/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policy/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/policy/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policy/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/policy/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policy/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/policy/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policy/method_getentitytag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/policy/method_getentitytag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policy/method_getentitytag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/policy/method_getentitytag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policy/method_listbyservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/policy/method_listbyservice.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policy/method_listbyservice.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/policy/method_listbyservice.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policy/model_policycontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/policy/model_policycontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policy/model_policycontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/policy/model_policycontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policy/model_policycontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/policy/model_policycontractproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policy/model_policycontractproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/policy/model_policycontractproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policy/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/policy/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policy/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/policy/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policy/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/policy/version.go similarity index 67% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policy/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/policy/version.go index 9ab76541612f..bd411bfe51fe 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policy/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/policy/version.go @@ -3,8 +3,8 @@ package policy // 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-05-01-preview" +const defaultApiVersion = "2024-05-01" func userAgent() string { - return "hashicorp/go-azure-sdk/policy/2022-08-01" + return "hashicorp/go-azure-sdk/policy/2024-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/policyfragment/README.md similarity index 81% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/policyfragment/README.md index fc80f2b30601..0294b12cdac5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/policyfragment/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/policyfragment` Documentation -The `policyfragment` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2023-05-01-preview`). +The `policyfragment` SDK allows for interaction with Azure Resource Manager `apimanagement` (API Version `2024-05-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/apimanagement/2023-05-01-preview/policyfragment" +import "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/policyfragment" ``` @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := policyfragment.NewPolicyFragmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "policyFragmentValue") +id := policyfragment.NewPolicyFragmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "policyFragmentName") payload := policyfragment.PolicyFragmentContract{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload, policyfragment.Default ```go ctx := context.TODO() -id := policyfragment.NewPolicyFragmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "policyFragmentValue") +id := policyfragment.NewPolicyFragmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "policyFragmentName") read, err := client.Delete(ctx, id, policyfragment.DefaultDeleteOperationOptions()) if err != nil { @@ -57,7 +57,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := policyfragment.NewPolicyFragmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "policyFragmentValue") +id := policyfragment.NewPolicyFragmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "policyFragmentName") read, err := client.Get(ctx, id, policyfragment.DefaultGetOperationOptions()) if err != nil { @@ -73,7 +73,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := policyfragment.NewPolicyFragmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "policyFragmentValue") +id := policyfragment.NewPolicyFragmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "policyFragmentName") read, err := client.GetEntityTag(ctx, id) if err != nil { @@ -89,7 +89,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := policyfragment.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue") +id := policyfragment.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") // alternatively `client.ListByService(ctx, id, policyfragment.DefaultListByServiceOperationOptions())` can be used to do batched pagination items, err := client.ListByServiceComplete(ctx, id, policyfragment.DefaultListByServiceOperationOptions()) @@ -106,7 +106,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := policyfragment.NewPolicyFragmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "policyFragmentValue") +id := policyfragment.NewPolicyFragmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "policyFragmentName") // alternatively `client.ListReferences(ctx, id, policyfragment.DefaultListReferencesOperationOptions())` can be used to do batched pagination items, err := client.ListReferencesComplete(ctx, id, policyfragment.DefaultListReferencesOperationOptions()) @@ -123,7 +123,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := policyfragment.NewWorkspacePolicyFragmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "policyFragmentValue") +id := policyfragment.NewWorkspacePolicyFragmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "policyFragmentName") payload := policyfragment.PolicyFragmentContract{ // ... @@ -140,7 +140,7 @@ if err := client.WorkspacePolicyFragmentCreateOrUpdateThenPoll(ctx, id, payload, ```go ctx := context.TODO() -id := policyfragment.NewWorkspacePolicyFragmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "policyFragmentValue") +id := policyfragment.NewWorkspacePolicyFragmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "policyFragmentName") read, err := client.WorkspacePolicyFragmentDelete(ctx, id, policyfragment.DefaultWorkspacePolicyFragmentDeleteOperationOptions()) if err != nil { @@ -156,7 +156,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := policyfragment.NewWorkspacePolicyFragmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "policyFragmentValue") +id := policyfragment.NewWorkspacePolicyFragmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "policyFragmentName") read, err := client.WorkspacePolicyFragmentGet(ctx, id, policyfragment.DefaultWorkspacePolicyFragmentGetOperationOptions()) if err != nil { @@ -172,7 +172,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := policyfragment.NewWorkspacePolicyFragmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "policyFragmentValue") +id := policyfragment.NewWorkspacePolicyFragmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "policyFragmentName") read, err := client.WorkspacePolicyFragmentGetEntityTag(ctx, id) if err != nil { @@ -188,7 +188,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := policyfragment.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue") +id := policyfragment.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId") // alternatively `client.WorkspacePolicyFragmentListByService(ctx, id, policyfragment.DefaultWorkspacePolicyFragmentListByServiceOperationOptions())` can be used to do batched pagination items, err := client.WorkspacePolicyFragmentListByServiceComplete(ctx, id, policyfragment.DefaultWorkspacePolicyFragmentListByServiceOperationOptions()) @@ -205,7 +205,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := policyfragment.NewWorkspacePolicyFragmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "policyFragmentValue") +id := policyfragment.NewWorkspacePolicyFragmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "policyFragmentName") // alternatively `client.WorkspacePolicyFragmentListReferences(ctx, id, policyfragment.DefaultWorkspacePolicyFragmentListReferencesOperationOptions())` can be used to do batched pagination items, err := client.WorkspacePolicyFragmentListReferencesComplete(ctx, id, policyfragment.DefaultWorkspacePolicyFragmentListReferencesOperationOptions()) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/policyfragment/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/policyfragment/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/policyfragment/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/policyfragment/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/id_policyfragment.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/policyfragment/id_policyfragment.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/id_policyfragment.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/policyfragment/id_policyfragment.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/id_service.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/policyfragment/id_service.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/id_service.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/policyfragment/id_service.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/id_workspace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/policyfragment/id_workspace.go similarity index 94% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/id_workspace.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/policyfragment/id_workspace.go index 334ecf5425ce..465b8277f768 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/id_workspace.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/policyfragment/id_workspace.go @@ -44,7 +44,7 @@ func ParseWorkspaceID(input string) (*WorkspaceId, error) { } id := WorkspaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseWorkspaceIDInsensitively(input string) (*WorkspaceId, error) { } id := WorkspaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id WorkspaceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), - resourceids.UserSpecifiedSegment("workspaceId", "workspaceIdValue"), + resourceids.UserSpecifiedSegment("workspaceId", "workspaceId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/id_workspacepolicyfragment.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/policyfragment/id_workspacepolicyfragment.go similarity index 95% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/id_workspacepolicyfragment.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/policyfragment/id_workspacepolicyfragment.go index eed247a5b17e..3449e07796e4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/id_workspacepolicyfragment.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/policyfragment/id_workspacepolicyfragment.go @@ -46,7 +46,7 @@ func ParseWorkspacePolicyFragmentID(input string) (*WorkspacePolicyFragmentId, e } id := WorkspacePolicyFragmentId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseWorkspacePolicyFragmentIDInsensitively(input string) (*WorkspacePolicy } id := WorkspacePolicyFragmentId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id WorkspacePolicyFragmentId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), - resourceids.UserSpecifiedSegment("workspaceId", "workspaceIdValue"), + resourceids.UserSpecifiedSegment("workspaceId", "workspaceId"), resourceids.StaticSegment("staticPolicyFragments", "policyFragments", "policyFragments"), - resourceids.UserSpecifiedSegment("policyFragmentName", "policyFragmentValue"), + resourceids.UserSpecifiedSegment("policyFragmentName", "policyFragmentName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/policyfragment/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/policyfragment/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/policyfragment/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/policyfragment/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/policyfragment/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/policyfragment/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/method_getentitytag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/policyfragment/method_getentitytag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/method_getentitytag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/policyfragment/method_getentitytag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/method_listbyservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/policyfragment/method_listbyservice.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/method_listbyservice.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/policyfragment/method_listbyservice.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/method_listreferences.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/policyfragment/method_listreferences.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/method_listreferences.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/policyfragment/method_listreferences.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/method_workspacepolicyfragmentcreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/policyfragment/method_workspacepolicyfragmentcreateorupdate.go similarity index 99% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/method_workspacepolicyfragmentcreateorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/policyfragment/method_workspacepolicyfragmentcreateorupdate.go index 07c7352e49dd..72b4a0c9c6c7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/method_workspacepolicyfragmentcreateorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/policyfragment/method_workspacepolicyfragmentcreateorupdate.go @@ -39,6 +39,7 @@ func (o WorkspacePolicyFragmentCreateOrUpdateOperationOptions) ToHeaders() *clie func (o WorkspacePolicyFragmentCreateOrUpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/method_workspacepolicyfragmentdelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/policyfragment/method_workspacepolicyfragmentdelete.go similarity index 99% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/method_workspacepolicyfragmentdelete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/policyfragment/method_workspacepolicyfragmentdelete.go index 3c175e499a5a..4afe42619067 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/method_workspacepolicyfragmentdelete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/policyfragment/method_workspacepolicyfragmentdelete.go @@ -35,6 +35,7 @@ func (o WorkspacePolicyFragmentDeleteOperationOptions) ToHeaders() *client.Heade func (o WorkspacePolicyFragmentDeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/method_workspacepolicyfragmentget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/policyfragment/method_workspacepolicyfragmentget.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/method_workspacepolicyfragmentget.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/policyfragment/method_workspacepolicyfragmentget.go index 24b3402ea1f5..11e23a111e51 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/method_workspacepolicyfragmentget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/policyfragment/method_workspacepolicyfragmentget.go @@ -34,6 +34,7 @@ func (o WorkspacePolicyFragmentGetOperationOptions) ToHeaders() *client.Headers func (o WorkspacePolicyFragmentGetOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c PolicyFragmentClient) WorkspacePolicyFragmentGet(ctx context.Context, id var model PolicyFragmentContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/method_workspacepolicyfragmentgetentitytag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/policyfragment/method_workspacepolicyfragmentgetentitytag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/method_workspacepolicyfragmentgetentitytag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/policyfragment/method_workspacepolicyfragmentgetentitytag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/method_workspacepolicyfragmentlistbyservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/policyfragment/method_workspacepolicyfragmentlistbyservice.go similarity index 99% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/method_workspacepolicyfragmentlistbyservice.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/policyfragment/method_workspacepolicyfragmentlistbyservice.go index 601c1855d17f..d5ef3e26541b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/method_workspacepolicyfragmentlistbyservice.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/policyfragment/method_workspacepolicyfragmentlistbyservice.go @@ -42,6 +42,7 @@ func (o WorkspacePolicyFragmentListByServiceOperationOptions) ToHeaders() *clien func (o WorkspacePolicyFragmentListByServiceOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/method_workspacepolicyfragmentlistreferences.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/policyfragment/method_workspacepolicyfragmentlistreferences.go similarity index 99% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/method_workspacepolicyfragmentlistreferences.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/policyfragment/method_workspacepolicyfragmentlistreferences.go index fca10ec83a68..9a7b1e52677d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/method_workspacepolicyfragmentlistreferences.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/policyfragment/method_workspacepolicyfragmentlistreferences.go @@ -40,6 +40,7 @@ func (o WorkspacePolicyFragmentListReferencesOperationOptions) ToHeaders() *clie func (o WorkspacePolicyFragmentListReferencesOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/model_policyfragmentcontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/policyfragment/model_policyfragmentcontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/model_policyfragmentcontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/policyfragment/model_policyfragmentcontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/model_policyfragmentcontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/policyfragment/model_policyfragmentcontractproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/model_policyfragmentcontractproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/policyfragment/model_policyfragmentcontractproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/model_resource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/policyfragment/model_resource.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/model_resource.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/policyfragment/model_resource.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/policyfragment/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/policyfragment/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/policyfragment/version.go similarity index 66% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/policyfragment/version.go index 61f0101cd5d2..3e145bb0b6d3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/policyfragment/version.go @@ -3,8 +3,8 @@ package policyfragment // 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-05-01-preview" +const defaultApiVersion = "2024-05-01" func userAgent() string { - return "hashicorp/go-azure-sdk/policyfragment/2022-08-01" + return "hashicorp/go-azure-sdk/policyfragment/2024-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/product/README.md similarity index 82% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/product/README.md index 669da0aeeade..e8c542bbd675 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/product/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/product` Documentation -The `product` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2023-05-01-preview`). +The `product` SDK allows for interaction with Azure Resource Manager `apimanagement` (API Version `2024-05-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/apimanagement/2023-05-01-preview/product" +import "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/product" ``` @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := product.NewProductID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "productIdValue") +id := product.NewProductID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "productId") payload := product.ProductContract{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := product.NewProductID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "productIdValue") +id := product.NewProductID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "productId") read, err := client.Delete(ctx, id, product.DefaultDeleteOperationOptions()) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := product.NewProductID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "productIdValue") +id := product.NewProductID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "productId") read, err := client.Get(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := product.NewProductID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "productIdValue") +id := product.NewProductID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "productId") read, err := client.GetEntityTag(ctx, id) if err != nil { @@ -93,7 +93,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := product.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue") +id := product.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") // alternatively `client.ListByService(ctx, id, product.DefaultListByServiceOperationOptions())` can be used to do batched pagination items, err := client.ListByServiceComplete(ctx, id, product.DefaultListByServiceOperationOptions()) @@ -110,7 +110,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := product.NewProductID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "productIdValue") +id := product.NewProductID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "productId") payload := product.ProductUpdateParameters{ // ... @@ -131,7 +131,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := product.NewWorkspaceProductID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "productIdValue") +id := product.NewWorkspaceProductID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "productId") payload := product.ProductContract{ // ... @@ -152,7 +152,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := product.NewWorkspaceProductID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "productIdValue") +id := product.NewWorkspaceProductID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "productId") read, err := client.WorkspaceProductDelete(ctx, id, product.DefaultWorkspaceProductDeleteOperationOptions()) if err != nil { @@ -168,7 +168,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := product.NewWorkspaceProductID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "productIdValue") +id := product.NewWorkspaceProductID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "productId") read, err := client.WorkspaceProductGet(ctx, id) if err != nil { @@ -184,7 +184,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := product.NewWorkspaceProductID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "productIdValue") +id := product.NewWorkspaceProductID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "productId") read, err := client.WorkspaceProductGetEntityTag(ctx, id) if err != nil { @@ -200,7 +200,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := product.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue") +id := product.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId") // alternatively `client.WorkspaceProductListByService(ctx, id, product.DefaultWorkspaceProductListByServiceOperationOptions())` can be used to do batched pagination items, err := client.WorkspaceProductListByServiceComplete(ctx, id, product.DefaultWorkspaceProductListByServiceOperationOptions()) @@ -217,7 +217,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := product.NewWorkspaceProductID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "productIdValue") +id := product.NewWorkspaceProductID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "productId") payload := product.ProductUpdateParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/product/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/product/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/product/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/product/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/id_product.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/product/id_product.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/id_product.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/product/id_product.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/id_service.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/product/id_service.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/id_service.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/product/id_service.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/id_workspace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/product/id_workspace.go similarity index 94% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/id_workspace.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/product/id_workspace.go index 72e09a3fc43c..5f50671db429 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/id_workspace.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/product/id_workspace.go @@ -44,7 +44,7 @@ func ParseWorkspaceID(input string) (*WorkspaceId, error) { } id := WorkspaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseWorkspaceIDInsensitively(input string) (*WorkspaceId, error) { } id := WorkspaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id WorkspaceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), - resourceids.UserSpecifiedSegment("workspaceId", "workspaceIdValue"), + resourceids.UserSpecifiedSegment("workspaceId", "workspaceId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/id_workspaceproduct.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/product/id_workspaceproduct.go similarity index 94% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/id_workspaceproduct.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/product/id_workspaceproduct.go index 6b11719ded02..d429c468e7eb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/id_workspaceproduct.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/product/id_workspaceproduct.go @@ -46,7 +46,7 @@ func ParseWorkspaceProductID(input string) (*WorkspaceProductId, error) { } id := WorkspaceProductId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseWorkspaceProductIDInsensitively(input string) (*WorkspaceProductId, er } id := WorkspaceProductId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id WorkspaceProductId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), - resourceids.UserSpecifiedSegment("workspaceId", "workspaceIdValue"), + resourceids.UserSpecifiedSegment("workspaceId", "workspaceId"), resourceids.StaticSegment("staticProducts", "products", "products"), - resourceids.UserSpecifiedSegment("productId", "productIdValue"), + resourceids.UserSpecifiedSegment("productId", "productId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/product/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/product/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/product/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/product/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/product/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/product/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/method_getentitytag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/product/method_getentitytag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/method_getentitytag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/product/method_getentitytag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/method_listbyservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/product/method_listbyservice.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/method_listbyservice.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/product/method_listbyservice.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/product/method_update.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/method_update.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/product/method_update.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/method_workspaceproductcreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/product/method_workspaceproductcreateorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/method_workspaceproductcreateorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/product/method_workspaceproductcreateorupdate.go index af10ed64d9cf..1a22f89859b5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/method_workspaceproductcreateorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/product/method_workspaceproductcreateorupdate.go @@ -36,6 +36,7 @@ func (o WorkspaceProductCreateOrUpdateOperationOptions) ToHeaders() *client.Head func (o WorkspaceProductCreateOrUpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -79,7 +80,6 @@ func (c ProductClient) WorkspaceProductCreateOrUpdate(ctx context.Context, id Wo var model ProductContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/method_workspaceproductdelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/product/method_workspaceproductdelete.go similarity index 99% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/method_workspaceproductdelete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/product/method_workspaceproductdelete.go index 3bf8f536240f..849214c59926 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/method_workspaceproductdelete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/product/method_workspaceproductdelete.go @@ -36,6 +36,7 @@ func (o WorkspaceProductDeleteOperationOptions) ToHeaders() *client.Headers { func (o WorkspaceProductDeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/method_workspaceproductget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/product/method_workspaceproductget.go similarity index 99% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/method_workspaceproductget.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/product/method_workspaceproductget.go index d746f01c02e4..78e82c51d830 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/method_workspaceproductget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/product/method_workspaceproductget.go @@ -45,7 +45,6 @@ func (c ProductClient) WorkspaceProductGet(ctx context.Context, id WorkspaceProd var model ProductContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/method_workspaceproductgetentitytag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/product/method_workspaceproductgetentitytag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/method_workspaceproductgetentitytag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/product/method_workspaceproductgetentitytag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/method_workspaceproductlistbyservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/product/method_workspaceproductlistbyservice.go similarity index 99% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/method_workspaceproductlistbyservice.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/product/method_workspaceproductlistbyservice.go index 457b9a161c9c..ccf2ecef6861 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/method_workspaceproductlistbyservice.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/product/method_workspaceproductlistbyservice.go @@ -43,6 +43,7 @@ func (o WorkspaceProductListByServiceOperationOptions) ToHeaders() *client.Heade func (o WorkspaceProductListByServiceOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/method_workspaceproductupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/product/method_workspaceproductupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/method_workspaceproductupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/product/method_workspaceproductupdate.go index e1305ecd777b..059782c921ad 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/method_workspaceproductupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/product/method_workspaceproductupdate.go @@ -36,6 +36,7 @@ func (o WorkspaceProductUpdateOperationOptions) ToHeaders() *client.Headers { func (o WorkspaceProductUpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -78,7 +79,6 @@ func (c ProductClient) WorkspaceProductUpdate(ctx context.Context, id WorkspaceP var model ProductContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/model_productcontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/product/model_productcontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/model_productcontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/product/model_productcontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/model_productcontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/product/model_productcontractproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/model_productcontractproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/product/model_productcontractproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/model_productupdateparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/product/model_productupdateparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/model_productupdateparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/product/model_productupdateparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/model_productupdateproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/product/model_productupdateproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/model_productupdateproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/product/model_productupdateproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/product/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/product/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/product/version.go similarity index 67% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/product/version.go index 32ebd8ad8d29..c7e2fe2cab41 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/product/version.go @@ -3,8 +3,8 @@ package product // 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-05-01-preview" +const defaultApiVersion = "2024-05-01" func userAgent() string { - return "hashicorp/go-azure-sdk/product/2022-08-01" + return "hashicorp/go-azure-sdk/product/2024-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productapi/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productapi/README.md similarity index 90% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productapi/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productapi/README.md index 18b79c30e1a8..54aa5388faa4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productapi/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productapi/README.md @@ -1,15 +1,17 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productapi` Documentation -The `productapi` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2023-05-01-preview`). +## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productapi` Documentation + +The `productapi` SDK allows for interaction with Azure Resource Manager `apimanagement` (API Version `2024-05-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/apimanagement/2023-05-01-preview/productapi" +import "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productapi" ``` + ### Client Initialization ```go @@ -17,6 +19,7 @@ client := productapi.NewProductApiClientWithBaseURI("https://management.azure.co client.Client.Authorizer = authorizer ``` + ### Example Usage: `ProductApiClient.CheckEntityExists` ```go @@ -32,6 +35,7 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `ProductApiClient.CreateOrUpdate` ```go @@ -47,6 +51,7 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `ProductApiClient.Delete` ```go @@ -62,6 +67,7 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `ProductApiClient.ListByProduct` ```go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productapi/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productapi/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productapi/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productapi/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productapi/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productapi/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productapi/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productapi/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productapi/id_product.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productapi/id_product.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productapi/id_product.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productapi/id_product.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productapi/id_productapi.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productapi/id_productapi.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productapi/id_productapi.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productapi/id_productapi.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productapi/method_checkentityexists.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productapi/method_checkentityexists.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productapi/method_checkentityexists.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productapi/method_checkentityexists.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productapi/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productapi/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productapi/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productapi/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productapi/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productapi/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productapi/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productapi/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productapi/method_listbyproduct.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productapi/method_listbyproduct.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productapi/method_listbyproduct.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productapi/method_listbyproduct.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productapi/model_apicontactinformation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productapi/model_apicontactinformation.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productapi/model_apicontactinformation.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productapi/model_apicontactinformation.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productapi/model_apicontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productapi/model_apicontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productapi/model_apicontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productapi/model_apicontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productapi/model_apicontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productapi/model_apicontractproperties.go similarity index 97% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productapi/model_apicontractproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productapi/model_apicontractproperties.go index 4b5acc7d3500..1c436fc92278 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productapi/model_apicontractproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productapi/model_apicontractproperties.go @@ -20,7 +20,7 @@ type ApiContractProperties struct { Path string `json:"path"` Protocols *[]Protocol `json:"protocols,omitempty"` ProvisioningState *string `json:"provisioningState,omitempty"` - ServiceUrl *string `json:"serviceUrl,omitempty"` + ServiceURL *string `json:"serviceUrl,omitempty"` SourceApiId *string `json:"sourceApiId,omitempty"` SubscriptionKeyParameterNames *SubscriptionKeyParameterNamesContract `json:"subscriptionKeyParameterNames,omitempty"` SubscriptionRequired *bool `json:"subscriptionRequired,omitempty"` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productapi/model_apilicenseinformation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productapi/model_apilicenseinformation.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productapi/model_apilicenseinformation.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productapi/model_apilicenseinformation.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productapi/model_apiversionsetcontractdetails.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productapi/model_apiversionsetcontractdetails.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productapi/model_apiversionsetcontractdetails.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productapi/model_apiversionsetcontractdetails.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productapi/model_authenticationsettingscontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productapi/model_authenticationsettingscontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productapi/model_authenticationsettingscontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productapi/model_authenticationsettingscontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productapi/model_oauth2authenticationsettingscontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productapi/model_oauth2authenticationsettingscontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productapi/model_oauth2authenticationsettingscontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productapi/model_oauth2authenticationsettingscontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productapi/model_openidauthenticationsettingscontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productapi/model_openidauthenticationsettingscontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productapi/model_openidauthenticationsettingscontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productapi/model_openidauthenticationsettingscontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productapi/model_subscriptionkeyparameternamescontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productapi/model_subscriptionkeyparameternamescontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productapi/model_subscriptionkeyparameternamescontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productapi/model_subscriptionkeyparameternamescontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productapi/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productapi/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productapi/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productapi/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productapi/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productapi/version.go similarity index 66% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productapi/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productapi/version.go index 1b47ed1330f7..9465e31ae959 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productapi/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productapi/version.go @@ -3,8 +3,8 @@ package productapi // 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-05-01-preview" +const defaultApiVersion = "2024-05-01" func userAgent() string { - return "hashicorp/go-azure-sdk/productapi/2022-08-01" + return "hashicorp/go-azure-sdk/productapi/2024-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productgroup/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productgroup/README.md similarity index 90% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productgroup/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productgroup/README.md index cfe0167b5498..cfbd2a4e415d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productgroup/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productgroup/README.md @@ -1,15 +1,17 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productgroup` Documentation -The `productgroup` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2023-05-01-preview`). +## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productgroup` Documentation + +The `productgroup` SDK allows for interaction with Azure Resource Manager `apimanagement` (API Version `2024-05-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/apimanagement/2023-05-01-preview/productgroup" +import "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productgroup" ``` + ### Client Initialization ```go @@ -17,6 +19,7 @@ client := productgroup.NewProductGroupClientWithBaseURI("https://management.azur client.Client.Authorizer = authorizer ``` + ### Example Usage: `ProductGroupClient.CheckEntityExists` ```go @@ -32,6 +35,7 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `ProductGroupClient.CreateOrUpdate` ```go @@ -47,6 +51,7 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `ProductGroupClient.Delete` ```go @@ -62,6 +67,7 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `ProductGroupClient.ListByProduct` ```go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productgroup/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productgroup/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productgroup/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productgroup/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productgroup/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productgroup/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productgroup/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productgroup/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productgroup/id_product.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productgroup/id_product.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productgroup/id_product.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productgroup/id_product.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productgroup/id_productgroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productgroup/id_productgroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productgroup/id_productgroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productgroup/id_productgroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productgroup/method_checkentityexists.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productgroup/method_checkentityexists.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productgroup/method_checkentityexists.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productgroup/method_checkentityexists.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productgroup/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productgroup/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productgroup/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productgroup/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productgroup/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productgroup/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productgroup/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productgroup/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productgroup/method_listbyproduct.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productgroup/method_listbyproduct.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productgroup/method_listbyproduct.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productgroup/method_listbyproduct.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productgroup/model_groupcontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productgroup/model_groupcontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productgroup/model_groupcontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productgroup/model_groupcontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productgroup/model_groupcontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productgroup/model_groupcontractproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productgroup/model_groupcontractproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productgroup/model_groupcontractproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productgroup/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productgroup/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productgroup/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productgroup/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productgroup/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productgroup/version.go similarity index 66% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productgroup/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productgroup/version.go index 38dc0e133bff..94e9bccf4c2d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productgroup/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productgroup/version.go @@ -3,8 +3,8 @@ package productgroup // 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-05-01-preview" +const defaultApiVersion = "2024-05-01" func userAgent() string { - return "hashicorp/go-azure-sdk/productgroup/2022-08-01" + return "hashicorp/go-azure-sdk/productgroup/2024-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productpolicy/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productpolicy/README.md similarity index 80% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productpolicy/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productpolicy/README.md index 0e9eb7296c06..70e31af6fde0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productpolicy/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productpolicy/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productpolicy` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productpolicy` Documentation -The `productpolicy` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2023-05-01-preview`). +The `productpolicy` SDK allows for interaction with Azure Resource Manager `apimanagement` (API Version `2024-05-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/apimanagement/2023-05-01-preview/productpolicy" +import "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productpolicy" ``` @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := productpolicy.NewProductID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "productIdValue") +id := productpolicy.NewProductID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "productId") payload := productpolicy.PolicyContract{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := productpolicy.NewProductID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "productIdValue") +id := productpolicy.NewProductID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "productId") read, err := client.Delete(ctx, id, productpolicy.DefaultDeleteOperationOptions()) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := productpolicy.NewProductID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "productIdValue") +id := productpolicy.NewProductID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "productId") read, err := client.Get(ctx, id, productpolicy.DefaultGetOperationOptions()) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := productpolicy.NewProductID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "productIdValue") +id := productpolicy.NewProductID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "productId") read, err := client.GetEntityTag(ctx, id) if err != nil { @@ -93,7 +93,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := productpolicy.NewProductID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "productIdValue") +id := productpolicy.NewProductID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "productId") // alternatively `client.ListByProduct(ctx, id)` can be used to do batched pagination items, err := client.ListByProductComplete(ctx, id) @@ -110,7 +110,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := productpolicy.NewWorkspaceProductID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "productIdValue") +id := productpolicy.NewWorkspaceProductID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "productId") payload := productpolicy.PolicyContract{ // ... @@ -131,7 +131,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := productpolicy.NewWorkspaceProductID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "productIdValue") +id := productpolicy.NewWorkspaceProductID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "productId") read, err := client.WorkspaceProductPolicyDelete(ctx, id, productpolicy.DefaultWorkspaceProductPolicyDeleteOperationOptions()) if err != nil { @@ -147,7 +147,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := productpolicy.NewWorkspaceProductID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "productIdValue") +id := productpolicy.NewWorkspaceProductID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "productId") read, err := client.WorkspaceProductPolicyGet(ctx, id, productpolicy.DefaultWorkspaceProductPolicyGetOperationOptions()) if err != nil { @@ -163,7 +163,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := productpolicy.NewWorkspaceProductID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "productIdValue") +id := productpolicy.NewWorkspaceProductID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "productId") read, err := client.WorkspaceProductPolicyGetEntityTag(ctx, id) if err != nil { @@ -179,7 +179,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := productpolicy.NewWorkspaceProductID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "productIdValue") +id := productpolicy.NewWorkspaceProductID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "productId") // alternatively `client.WorkspaceProductPolicyListByProduct(ctx, id)` can be used to do batched pagination items, err := client.WorkspaceProductPolicyListByProductComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productpolicy/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productpolicy/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productpolicy/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productpolicy/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productpolicy/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productpolicy/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productpolicy/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productpolicy/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productpolicy/id_product.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productpolicy/id_product.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productpolicy/id_product.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productpolicy/id_product.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productpolicy/id_workspaceproduct.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productpolicy/id_workspaceproduct.go similarity index 94% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productpolicy/id_workspaceproduct.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productpolicy/id_workspaceproduct.go index de50624b5f98..63743d12a09c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productpolicy/id_workspaceproduct.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productpolicy/id_workspaceproduct.go @@ -46,7 +46,7 @@ func ParseWorkspaceProductID(input string) (*WorkspaceProductId, error) { } id := WorkspaceProductId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseWorkspaceProductIDInsensitively(input string) (*WorkspaceProductId, er } id := WorkspaceProductId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id WorkspaceProductId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), - resourceids.UserSpecifiedSegment("workspaceId", "workspaceIdValue"), + resourceids.UserSpecifiedSegment("workspaceId", "workspaceId"), resourceids.StaticSegment("staticProducts", "products", "products"), - resourceids.UserSpecifiedSegment("productId", "productIdValue"), + resourceids.UserSpecifiedSegment("productId", "productId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productpolicy/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productpolicy/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productpolicy/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productpolicy/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productpolicy/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productpolicy/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productpolicy/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productpolicy/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productpolicy/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productpolicy/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productpolicy/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productpolicy/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productpolicy/method_getentitytag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productpolicy/method_getentitytag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productpolicy/method_getentitytag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productpolicy/method_getentitytag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productpolicy/method_listbyproduct.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productpolicy/method_listbyproduct.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productpolicy/method_listbyproduct.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productpolicy/method_listbyproduct.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productpolicy/method_workspaceproductpolicycreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productpolicy/method_workspaceproductpolicycreateorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productpolicy/method_workspaceproductpolicycreateorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productpolicy/method_workspaceproductpolicycreateorupdate.go index 9a55b9a739a0..0c8676744862 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productpolicy/method_workspaceproductpolicycreateorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productpolicy/method_workspaceproductpolicycreateorupdate.go @@ -36,6 +36,7 @@ func (o WorkspaceProductPolicyCreateOrUpdateOperationOptions) ToHeaders() *clien func (o WorkspaceProductPolicyCreateOrUpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -79,7 +80,6 @@ func (c ProductPolicyClient) WorkspaceProductPolicyCreateOrUpdate(ctx context.Co var model PolicyContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productpolicy/method_workspaceproductpolicydelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productpolicy/method_workspaceproductpolicydelete.go similarity index 99% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productpolicy/method_workspaceproductpolicydelete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productpolicy/method_workspaceproductpolicydelete.go index a76872c52a7b..d58bdb503e75 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productpolicy/method_workspaceproductpolicydelete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productpolicy/method_workspaceproductpolicydelete.go @@ -35,6 +35,7 @@ func (o WorkspaceProductPolicyDeleteOperationOptions) ToHeaders() *client.Header func (o WorkspaceProductPolicyDeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productpolicy/method_workspaceproductpolicyget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productpolicy/method_workspaceproductpolicyget.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productpolicy/method_workspaceproductpolicyget.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productpolicy/method_workspaceproductpolicyget.go index cbd5809fb0ec..999f909eccf0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productpolicy/method_workspaceproductpolicyget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productpolicy/method_workspaceproductpolicyget.go @@ -34,6 +34,7 @@ func (o WorkspaceProductPolicyGetOperationOptions) ToHeaders() *client.Headers { func (o WorkspaceProductPolicyGetOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c ProductPolicyClient) WorkspaceProductPolicyGet(ctx context.Context, id W var model PolicyContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productpolicy/method_workspaceproductpolicygetentitytag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productpolicy/method_workspaceproductpolicygetentitytag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productpolicy/method_workspaceproductpolicygetentitytag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productpolicy/method_workspaceproductpolicygetentitytag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productpolicy/method_workspaceproductpolicylistbyproduct.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productpolicy/method_workspaceproductpolicylistbyproduct.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productpolicy/method_workspaceproductpolicylistbyproduct.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productpolicy/method_workspaceproductpolicylistbyproduct.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productpolicy/model_policycontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productpolicy/model_policycontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productpolicy/model_policycontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productpolicy/model_policycontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productpolicy/model_policycontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productpolicy/model_policycontractproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productpolicy/model_policycontractproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productpolicy/model_policycontractproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productpolicy/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productpolicy/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productpolicy/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productpolicy/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productpolicy/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productpolicy/version.go similarity index 66% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productpolicy/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productpolicy/version.go index f4e3f46a5339..3a1d551ca4c4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productpolicy/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productpolicy/version.go @@ -3,8 +3,8 @@ package productpolicy // 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-05-01-preview" +const defaultApiVersion = "2024-05-01" func userAgent() string { - return "hashicorp/go-azure-sdk/productpolicy/2022-08-01" + return "hashicorp/go-azure-sdk/productpolicy/2024-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/producttag/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/producttag/README.md similarity index 92% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/producttag/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/producttag/README.md index 0a2e69f7088d..f482fcd89b3a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/producttag/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/producttag/README.md @@ -1,15 +1,17 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/producttag` Documentation -The `producttag` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2023-05-01-preview`). +## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/producttag` Documentation + +The `producttag` SDK allows for interaction with Azure Resource Manager `apimanagement` (API Version `2024-05-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/apimanagement/2023-05-01-preview/producttag" +import "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/producttag" ``` + ### Client Initialization ```go @@ -17,6 +19,7 @@ client := producttag.NewProductTagClientWithBaseURI("https://management.azure.co client.Client.Authorizer = authorizer ``` + ### Example Usage: `ProductTagClient.TagAssignToProduct` ```go @@ -32,6 +35,7 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `ProductTagClient.TagDetachFromProduct` ```go @@ -47,6 +51,7 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `ProductTagClient.TagGetByProduct` ```go @@ -62,6 +67,7 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `ProductTagClient.TagGetEntityStateByProduct` ```go @@ -77,6 +83,7 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `ProductTagClient.TagListByProduct` ```go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/producttag/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/producttag/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/producttag/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/producttag/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/producttag/id_product.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/producttag/id_product.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/producttag/id_product.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/producttag/id_product.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/producttag/id_producttag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/producttag/id_producttag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/producttag/id_producttag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/producttag/id_producttag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/producttag/method_tagassigntoproduct.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/producttag/method_tagassigntoproduct.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/producttag/method_tagassigntoproduct.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/producttag/method_tagassigntoproduct.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/producttag/method_tagdetachfromproduct.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/producttag/method_tagdetachfromproduct.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/producttag/method_tagdetachfromproduct.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/producttag/method_tagdetachfromproduct.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/producttag/method_taggetbyproduct.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/producttag/method_taggetbyproduct.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/producttag/method_taggetbyproduct.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/producttag/method_taggetbyproduct.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/producttag/method_taggetentitystatebyproduct.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/producttag/method_taggetentitystatebyproduct.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/producttag/method_taggetentitystatebyproduct.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/producttag/method_taggetentitystatebyproduct.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/producttag/method_taglistbyproduct.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/producttag/method_taglistbyproduct.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/producttag/method_taglistbyproduct.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/producttag/method_taglistbyproduct.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/producttag/model_tagcontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/producttag/model_tagcontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/producttag/model_tagcontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/producttag/model_tagcontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/producttag/model_tagcontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/producttag/model_tagcontractproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/producttag/model_tagcontractproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/producttag/model_tagcontractproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/producttag/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/producttag/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/producttag/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/producttag/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/producttag/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/producttag/version.go similarity index 66% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/producttag/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/producttag/version.go index bb82464ff31a..8ce734092ddb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/producttag/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/producttag/version.go @@ -3,8 +3,8 @@ package producttag // 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-05-01-preview" +const defaultApiVersion = "2024-05-01" func userAgent() string { - return "hashicorp/go-azure-sdk/producttag/2022-08-01" + return "hashicorp/go-azure-sdk/producttag/2024-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/schema/README.md similarity index 88% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/schema/README.md index 69eb6ecf96d5..6fbe9e7a3a8b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/schema/README.md @@ -1,15 +1,17 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema` Documentation -The `schema` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2023-05-01-preview`). +## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/schema` Documentation + +The `schema` SDK allows for interaction with Azure Resource Manager `apimanagement` (API Version `2024-05-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/apimanagement/2023-05-01-preview/schema" +import "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/schema" ``` + ### Client Initialization ```go @@ -17,6 +19,7 @@ client := schema.NewSchemaClientWithBaseURI("https://management.azure.com") client.Client.Authorizer = authorizer ``` + ### Example Usage: `SchemaClient.GlobalSchemaCreateOrUpdate` ```go @@ -33,6 +36,7 @@ if err := client.GlobalSchemaCreateOrUpdateThenPoll(ctx, id, payload, schema.Def } ``` + ### Example Usage: `SchemaClient.GlobalSchemaDelete` ```go @@ -48,6 +52,7 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `SchemaClient.GlobalSchemaGet` ```go @@ -63,6 +68,7 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `SchemaClient.GlobalSchemaGetEntityTag` ```go @@ -78,6 +84,7 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `SchemaClient.GlobalSchemaListByService` ```go @@ -94,11 +101,12 @@ for _, item := range items { } ``` + ### Example Usage: `SchemaClient.WorkspaceGlobalSchemaCreateOrUpdate` ```go ctx := context.TODO() -id := schema.NewWorkspaceSchemaID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "schemaIdValue") +id := schema.NewWorkspaceSchemaID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "schemaId") payload := schema.GlobalSchemaContract{ // ... @@ -110,11 +118,12 @@ if err := client.WorkspaceGlobalSchemaCreateOrUpdateThenPoll(ctx, id, payload, s } ``` + ### Example Usage: `SchemaClient.WorkspaceGlobalSchemaDelete` ```go ctx := context.TODO() -id := schema.NewWorkspaceSchemaID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "schemaIdValue") +id := schema.NewWorkspaceSchemaID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "schemaId") read, err := client.WorkspaceGlobalSchemaDelete(ctx, id, schema.DefaultWorkspaceGlobalSchemaDeleteOperationOptions()) if err != nil { @@ -125,11 +134,12 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `SchemaClient.WorkspaceGlobalSchemaGet` ```go ctx := context.TODO() -id := schema.NewWorkspaceSchemaID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "schemaIdValue") +id := schema.NewWorkspaceSchemaID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "schemaId") read, err := client.WorkspaceGlobalSchemaGet(ctx, id) if err != nil { @@ -140,11 +150,12 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `SchemaClient.WorkspaceGlobalSchemaGetEntityTag` ```go ctx := context.TODO() -id := schema.NewWorkspaceSchemaID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "schemaIdValue") +id := schema.NewWorkspaceSchemaID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "schemaId") read, err := client.WorkspaceGlobalSchemaGetEntityTag(ctx, id) if err != nil { @@ -155,11 +166,12 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `SchemaClient.WorkspaceGlobalSchemaListByService` ```go ctx := context.TODO() -id := schema.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue") +id := schema.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId") // alternatively `client.WorkspaceGlobalSchemaListByService(ctx, id, schema.DefaultWorkspaceGlobalSchemaListByServiceOperationOptions())` can be used to do batched pagination items, err := client.WorkspaceGlobalSchemaListByServiceComplete(ctx, id, schema.DefaultWorkspaceGlobalSchemaListByServiceOperationOptions()) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/schema/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/schema/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/schema/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/schema/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/id_schema.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/schema/id_schema.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/id_schema.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/schema/id_schema.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/id_service.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/schema/id_service.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/id_service.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/schema/id_service.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/id_workspace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/schema/id_workspace.go similarity index 94% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/id_workspace.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/schema/id_workspace.go index f4096e5456a3..aa510eebc362 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/id_workspace.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/schema/id_workspace.go @@ -44,7 +44,7 @@ func ParseWorkspaceID(input string) (*WorkspaceId, error) { } id := WorkspaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseWorkspaceIDInsensitively(input string) (*WorkspaceId, error) { } id := WorkspaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id WorkspaceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), - resourceids.UserSpecifiedSegment("workspaceId", "workspaceIdValue"), + resourceids.UserSpecifiedSegment("workspaceId", "workspaceId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/id_workspaceschema.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/schema/id_workspaceschema.go similarity index 94% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/id_workspaceschema.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/schema/id_workspaceschema.go index 25f35d2ce894..35db6c93c7d9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/id_workspaceschema.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/schema/id_workspaceschema.go @@ -46,7 +46,7 @@ func ParseWorkspaceSchemaID(input string) (*WorkspaceSchemaId, error) { } id := WorkspaceSchemaId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseWorkspaceSchemaIDInsensitively(input string) (*WorkspaceSchemaId, erro } id := WorkspaceSchemaId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id WorkspaceSchemaId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), - resourceids.UserSpecifiedSegment("workspaceId", "workspaceIdValue"), + resourceids.UserSpecifiedSegment("workspaceId", "workspaceId"), resourceids.StaticSegment("staticSchemas", "schemas", "schemas"), - resourceids.UserSpecifiedSegment("schemaId", "schemaIdValue"), + resourceids.UserSpecifiedSegment("schemaId", "schemaId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/method_globalschemacreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/schema/method_globalschemacreateorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/method_globalschemacreateorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/schema/method_globalschemacreateorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/method_globalschemadelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/schema/method_globalschemadelete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/method_globalschemadelete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/schema/method_globalschemadelete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/method_globalschemaget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/schema/method_globalschemaget.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/method_globalschemaget.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/schema/method_globalschemaget.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/method_globalschemagetentitytag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/schema/method_globalschemagetentitytag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/method_globalschemagetentitytag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/schema/method_globalschemagetentitytag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/method_globalschemalistbyservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/schema/method_globalschemalistbyservice.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/method_globalschemalistbyservice.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/schema/method_globalschemalistbyservice.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/method_workspaceglobalschemacreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/schema/method_workspaceglobalschemacreateorupdate.go similarity index 99% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/method_workspaceglobalschemacreateorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/schema/method_workspaceglobalschemacreateorupdate.go index 99be8ac48c41..3b378cb67e0e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/method_workspaceglobalschemacreateorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/schema/method_workspaceglobalschemacreateorupdate.go @@ -39,6 +39,7 @@ func (o WorkspaceGlobalSchemaCreateOrUpdateOperationOptions) ToHeaders() *client func (o WorkspaceGlobalSchemaCreateOrUpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/method_workspaceglobalschemadelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/schema/method_workspaceglobalschemadelete.go similarity index 99% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/method_workspaceglobalschemadelete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/schema/method_workspaceglobalschemadelete.go index a8aab3185b17..4015581a86c1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/method_workspaceglobalschemadelete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/schema/method_workspaceglobalschemadelete.go @@ -35,6 +35,7 @@ func (o WorkspaceGlobalSchemaDeleteOperationOptions) ToHeaders() *client.Headers func (o WorkspaceGlobalSchemaDeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/method_workspaceglobalschemaget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/schema/method_workspaceglobalschemaget.go similarity index 99% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/method_workspaceglobalschemaget.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/schema/method_workspaceglobalschemaget.go index 73828cf65b63..749310cc25be 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/method_workspaceglobalschemaget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/schema/method_workspaceglobalschemaget.go @@ -45,7 +45,6 @@ func (c SchemaClient) WorkspaceGlobalSchemaGet(ctx context.Context, id Workspace var model GlobalSchemaContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/method_workspaceglobalschemagetentitytag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/schema/method_workspaceglobalschemagetentitytag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/method_workspaceglobalschemagetentitytag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/schema/method_workspaceglobalschemagetentitytag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/method_workspaceglobalschemalistbyservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/schema/method_workspaceglobalschemalistbyservice.go similarity index 99% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/method_workspaceglobalschemalistbyservice.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/schema/method_workspaceglobalschemalistbyservice.go index aeae5549ab2c..2c2454c9a80b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/method_workspaceglobalschemalistbyservice.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/schema/method_workspaceglobalschemalistbyservice.go @@ -41,6 +41,7 @@ func (o WorkspaceGlobalSchemaListByServiceOperationOptions) ToHeaders() *client. func (o WorkspaceGlobalSchemaListByServiceOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/model_globalschemacontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/schema/model_globalschemacontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/model_globalschemacontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/schema/model_globalschemacontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/model_globalschemacontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/schema/model_globalschemacontractproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/model_globalschemacontractproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/schema/model_globalschemacontractproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/schema/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/schema/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/schema/version.go similarity index 67% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/schema/version.go index e97bd2d6b9f8..4d185a183a9f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/schema/version.go @@ -3,8 +3,8 @@ package schema // 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-05-01-preview" +const defaultApiVersion = "2024-05-01" func userAgent() string { - return "hashicorp/go-azure-sdk/schema/2022-08-01" + return "hashicorp/go-azure-sdk/schema/2024-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signinsettings/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/signinsettings/README.md similarity index 90% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signinsettings/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/signinsettings/README.md index 96b3fe08db39..67141f88bb61 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signinsettings/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/signinsettings/README.md @@ -1,15 +1,17 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signinsettings` Documentation -The `signinsettings` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2023-05-01-preview`). +## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/signinsettings` Documentation + +The `signinsettings` SDK allows for interaction with Azure Resource Manager `apimanagement` (API Version `2024-05-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/apimanagement/2023-05-01-preview/signinsettings" +import "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/signinsettings" ``` + ### Client Initialization ```go @@ -17,6 +19,7 @@ client := signinsettings.NewSignInSettingsClientWithBaseURI("https://management. client.Client.Authorizer = authorizer ``` + ### Example Usage: `SignInSettingsClient.CreateOrUpdate` ```go @@ -37,6 +40,7 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `SignInSettingsClient.Get` ```go @@ -52,6 +56,7 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `SignInSettingsClient.GetEntityTag` ```go @@ -67,6 +72,7 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `SignInSettingsClient.Update` ```go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signinsettings/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/signinsettings/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signinsettings/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/signinsettings/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signinsettings/id_service.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/signinsettings/id_service.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signinsettings/id_service.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/signinsettings/id_service.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signinsettings/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/signinsettings/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signinsettings/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/signinsettings/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signinsettings/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/signinsettings/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signinsettings/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/signinsettings/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signinsettings/method_getentitytag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/signinsettings/method_getentitytag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signinsettings/method_getentitytag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/signinsettings/method_getentitytag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signinsettings/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/signinsettings/method_update.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signinsettings/method_update.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/signinsettings/method_update.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signinsettings/model_portalsigninsettingproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/signinsettings/model_portalsigninsettingproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signinsettings/model_portalsigninsettingproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/signinsettings/model_portalsigninsettingproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signinsettings/model_portalsigninsettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/signinsettings/model_portalsigninsettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signinsettings/model_portalsigninsettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/signinsettings/model_portalsigninsettings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signinsettings/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/signinsettings/version.go similarity index 66% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signinsettings/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/signinsettings/version.go index ae031e4504a8..cc1cb323c8c4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signinsettings/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/signinsettings/version.go @@ -3,8 +3,8 @@ package signinsettings // 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-05-01-preview" +const defaultApiVersion = "2024-05-01" func userAgent() string { - return "hashicorp/go-azure-sdk/signinsettings/2022-08-01" + return "hashicorp/go-azure-sdk/signinsettings/2024-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signupsettings/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/signupsettings/README.md similarity index 90% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signupsettings/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/signupsettings/README.md index 060905c7a825..94fab7066ea7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signupsettings/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/signupsettings/README.md @@ -1,15 +1,17 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signupsettings` Documentation -The `signupsettings` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2023-05-01-preview`). +## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/signupsettings` Documentation + +The `signupsettings` SDK allows for interaction with Azure Resource Manager `apimanagement` (API Version `2024-05-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/apimanagement/2023-05-01-preview/signupsettings" +import "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/signupsettings" ``` + ### Client Initialization ```go @@ -17,6 +19,7 @@ client := signupsettings.NewSignUpSettingsClientWithBaseURI("https://management. client.Client.Authorizer = authorizer ``` + ### Example Usage: `SignUpSettingsClient.CreateOrUpdate` ```go @@ -37,6 +40,7 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `SignUpSettingsClient.Get` ```go @@ -52,6 +56,7 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `SignUpSettingsClient.GetEntityTag` ```go @@ -67,6 +72,7 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `SignUpSettingsClient.Update` ```go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signupsettings/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/signupsettings/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signupsettings/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/signupsettings/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signupsettings/id_service.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/signupsettings/id_service.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signupsettings/id_service.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/signupsettings/id_service.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signupsettings/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/signupsettings/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signupsettings/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/signupsettings/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signupsettings/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/signupsettings/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signupsettings/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/signupsettings/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signupsettings/method_getentitytag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/signupsettings/method_getentitytag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signupsettings/method_getentitytag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/signupsettings/method_getentitytag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signupsettings/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/signupsettings/method_update.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signupsettings/method_update.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/signupsettings/method_update.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signupsettings/model_portalsignupsettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/signupsettings/model_portalsignupsettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signupsettings/model_portalsignupsettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/signupsettings/model_portalsignupsettings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signupsettings/model_portalsignupsettingsproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/signupsettings/model_portalsignupsettingsproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signupsettings/model_portalsignupsettingsproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/signupsettings/model_portalsignupsettingsproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signupsettings/model_termsofserviceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/signupsettings/model_termsofserviceproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signupsettings/model_termsofserviceproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/signupsettings/model_termsofserviceproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signupsettings/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/signupsettings/version.go similarity index 66% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signupsettings/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/signupsettings/version.go index 730da0b42f75..49dc5753d4be 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signupsettings/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/signupsettings/version.go @@ -3,8 +3,8 @@ package signupsettings // 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-05-01-preview" +const defaultApiVersion = "2024-05-01" func userAgent() string { - return "hashicorp/go-azure-sdk/signupsettings/2022-08-01" + return "hashicorp/go-azure-sdk/signupsettings/2024-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/subscription/README.md similarity index 82% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/subscription/README.md index 3972b0f7f4de..b25ce59038d3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/subscription/README.md @@ -1,15 +1,17 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription` Documentation -The `subscription` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2023-05-01-preview`). +## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/subscription` Documentation + +The `subscription` SDK allows for interaction with Azure Resource Manager `apimanagement` (API Version `2024-05-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/apimanagement/2023-05-01-preview/subscription" +import "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/subscription" ``` + ### Client Initialization ```go @@ -17,11 +19,12 @@ client := subscription.NewSubscriptionClientWithBaseURI("https://management.azur client.Client.Authorizer = authorizer ``` + ### Example Usage: `SubscriptionClient.CreateOrUpdate` ```go ctx := context.TODO() -id := subscription.NewSubscriptions2ID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "sid") +id := subscription.NewSubscriptions2ID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "subscriptionName") payload := subscription.SubscriptionCreateParameters{ // ... @@ -37,11 +40,12 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `SubscriptionClient.Delete` ```go ctx := context.TODO() -id := subscription.NewSubscriptions2ID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "sid") +id := subscription.NewSubscriptions2ID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "subscriptionName") read, err := client.Delete(ctx, id, subscription.DefaultDeleteOperationOptions()) if err != nil { @@ -52,11 +56,12 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `SubscriptionClient.Get` ```go ctx := context.TODO() -id := subscription.NewSubscriptions2ID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "sid") +id := subscription.NewSubscriptions2ID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "subscriptionName") read, err := client.Get(ctx, id) if err != nil { @@ -67,11 +72,12 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `SubscriptionClient.GetEntityTag` ```go ctx := context.TODO() -id := subscription.NewSubscriptions2ID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "sid") +id := subscription.NewSubscriptions2ID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "subscriptionName") read, err := client.GetEntityTag(ctx, id) if err != nil { @@ -82,6 +88,7 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `SubscriptionClient.List` ```go @@ -98,11 +105,12 @@ for _, item := range items { } ``` + ### Example Usage: `SubscriptionClient.ListSecrets` ```go ctx := context.TODO() -id := subscription.NewSubscriptions2ID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "sid") +id := subscription.NewSubscriptions2ID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "subscriptionName") read, err := client.ListSecrets(ctx, id) if err != nil { @@ -113,11 +121,12 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `SubscriptionClient.RegeneratePrimaryKey` ```go ctx := context.TODO() -id := subscription.NewSubscriptions2ID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "sid") +id := subscription.NewSubscriptions2ID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "subscriptionName") read, err := client.RegeneratePrimaryKey(ctx, id) if err != nil { @@ -128,11 +137,12 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `SubscriptionClient.RegenerateSecondaryKey` ```go ctx := context.TODO() -id := subscription.NewSubscriptions2ID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "sid") +id := subscription.NewSubscriptions2ID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "subscriptionName") read, err := client.RegenerateSecondaryKey(ctx, id) if err != nil { @@ -143,11 +153,12 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `SubscriptionClient.Update` ```go ctx := context.TODO() -id := subscription.NewSubscriptions2ID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "sid") +id := subscription.NewSubscriptions2ID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "subscriptionName") payload := subscription.SubscriptionUpdateParameters{ // ... @@ -163,11 +174,12 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `SubscriptionClient.UserSubscriptionGet` ```go ctx := context.TODO() -id := subscription.NewUserSubscriptions2ID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "userId", "sid") +id := subscription.NewUserSubscriptions2ID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "userId", "subscriptionName") read, err := client.UserSubscriptionGet(ctx, id) if err != nil { @@ -178,11 +190,12 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `SubscriptionClient.WorkspaceSubscriptionCreateOrUpdate` ```go ctx := context.TODO() -id := subscription.NewWorkspaceSubscriptions2ID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "subscriptionValue") +id := subscription.NewWorkspaceSubscriptions2ID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "subscriptionName") payload := subscription.SubscriptionCreateParameters{ // ... @@ -198,11 +211,12 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `SubscriptionClient.WorkspaceSubscriptionDelete` ```go ctx := context.TODO() -id := subscription.NewWorkspaceSubscriptions2ID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "subscriptionValue") +id := subscription.NewWorkspaceSubscriptions2ID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "subscriptionName") read, err := client.WorkspaceSubscriptionDelete(ctx, id, subscription.DefaultWorkspaceSubscriptionDeleteOperationOptions()) if err != nil { @@ -213,11 +227,12 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `SubscriptionClient.WorkspaceSubscriptionGet` ```go ctx := context.TODO() -id := subscription.NewWorkspaceSubscriptions2ID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "subscriptionValue") +id := subscription.NewWorkspaceSubscriptions2ID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "subscriptionName") read, err := client.WorkspaceSubscriptionGet(ctx, id) if err != nil { @@ -228,11 +243,12 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `SubscriptionClient.WorkspaceSubscriptionGetEntityTag` ```go ctx := context.TODO() -id := subscription.NewWorkspaceSubscriptions2ID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "subscriptionValue") +id := subscription.NewWorkspaceSubscriptions2ID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "subscriptionName") read, err := client.WorkspaceSubscriptionGetEntityTag(ctx, id) if err != nil { @@ -243,11 +259,12 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `SubscriptionClient.WorkspaceSubscriptionList` ```go ctx := context.TODO() -id := subscription.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue") +id := subscription.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId") // alternatively `client.WorkspaceSubscriptionList(ctx, id, subscription.DefaultWorkspaceSubscriptionListOperationOptions())` can be used to do batched pagination items, err := client.WorkspaceSubscriptionListComplete(ctx, id, subscription.DefaultWorkspaceSubscriptionListOperationOptions()) @@ -259,11 +276,12 @@ for _, item := range items { } ``` + ### Example Usage: `SubscriptionClient.WorkspaceSubscriptionListSecrets` ```go ctx := context.TODO() -id := subscription.NewWorkspaceSubscriptions2ID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "subscriptionValue") +id := subscription.NewWorkspaceSubscriptions2ID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "subscriptionName") read, err := client.WorkspaceSubscriptionListSecrets(ctx, id) if err != nil { @@ -274,11 +292,12 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `SubscriptionClient.WorkspaceSubscriptionRegeneratePrimaryKey` ```go ctx := context.TODO() -id := subscription.NewWorkspaceSubscriptions2ID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "subscriptionValue") +id := subscription.NewWorkspaceSubscriptions2ID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "subscriptionName") read, err := client.WorkspaceSubscriptionRegeneratePrimaryKey(ctx, id) if err != nil { @@ -289,11 +308,12 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `SubscriptionClient.WorkspaceSubscriptionRegenerateSecondaryKey` ```go ctx := context.TODO() -id := subscription.NewWorkspaceSubscriptions2ID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "subscriptionValue") +id := subscription.NewWorkspaceSubscriptions2ID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "subscriptionName") read, err := client.WorkspaceSubscriptionRegenerateSecondaryKey(ctx, id) if err != nil { @@ -304,11 +324,12 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `SubscriptionClient.WorkspaceSubscriptionUpdate` ```go ctx := context.TODO() -id := subscription.NewWorkspaceSubscriptions2ID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "subscriptionValue") +id := subscription.NewWorkspaceSubscriptions2ID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "subscriptionName") payload := subscription.SubscriptionUpdateParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/subscription/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/subscription/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/subscription/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/subscription/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/id_service.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/subscription/id_service.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/id_service.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/subscription/id_service.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/id_subscriptions2.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/subscription/id_subscriptions2.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/id_subscriptions2.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/subscription/id_subscriptions2.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/id_usersubscriptions2.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/subscription/id_usersubscriptions2.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/id_usersubscriptions2.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/subscription/id_usersubscriptions2.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/id_workspace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/subscription/id_workspace.go similarity index 94% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/id_workspace.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/subscription/id_workspace.go index f2e1bd584a2e..8a32c1c46a11 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/id_workspace.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/subscription/id_workspace.go @@ -44,7 +44,7 @@ func ParseWorkspaceID(input string) (*WorkspaceId, error) { } id := WorkspaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseWorkspaceIDInsensitively(input string) (*WorkspaceId, error) { } id := WorkspaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id WorkspaceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), - resourceids.UserSpecifiedSegment("workspaceId", "workspaceIdValue"), + resourceids.UserSpecifiedSegment("workspaceId", "workspaceId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/id_workspacesubscriptions2.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/subscription/id_workspacesubscriptions2.go similarity index 95% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/id_workspacesubscriptions2.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/subscription/id_workspacesubscriptions2.go index 5ec25c56a27f..899ffd622e93 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/id_workspacesubscriptions2.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/subscription/id_workspacesubscriptions2.go @@ -46,7 +46,7 @@ func ParseWorkspaceSubscriptions2ID(input string) (*WorkspaceSubscriptions2Id, e } id := WorkspaceSubscriptions2Id{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseWorkspaceSubscriptions2IDInsensitively(input string) (*WorkspaceSubscr } id := WorkspaceSubscriptions2Id{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id WorkspaceSubscriptions2Id) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), - resourceids.UserSpecifiedSegment("workspaceId", "workspaceIdValue"), + resourceids.UserSpecifiedSegment("workspaceId", "workspaceId"), resourceids.StaticSegment("staticSubscriptions2", "subscriptions", "subscriptions"), - resourceids.UserSpecifiedSegment("subscriptionName", "subscriptionValue"), + resourceids.UserSpecifiedSegment("subscriptionName", "subscriptionName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/subscription/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/subscription/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/subscription/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/subscription/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/subscription/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/subscription/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/method_getentitytag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/subscription/method_getentitytag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/method_getentitytag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/subscription/method_getentitytag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/subscription/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/subscription/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/method_listsecrets.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/subscription/method_listsecrets.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/method_listsecrets.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/subscription/method_listsecrets.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/method_regenerateprimarykey.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/subscription/method_regenerateprimarykey.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/method_regenerateprimarykey.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/subscription/method_regenerateprimarykey.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/method_regeneratesecondarykey.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/subscription/method_regeneratesecondarykey.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/method_regeneratesecondarykey.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/subscription/method_regeneratesecondarykey.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/subscription/method_update.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/method_update.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/subscription/method_update.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/method_usersubscriptionget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/subscription/method_usersubscriptionget.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/method_usersubscriptionget.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/subscription/method_usersubscriptionget.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/method_workspacesubscriptioncreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/subscription/method_workspacesubscriptioncreateorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/method_workspacesubscriptioncreateorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/subscription/method_workspacesubscriptioncreateorupdate.go index 9c4c3b06ccb1..37af25f8a1e9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/method_workspacesubscriptioncreateorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/subscription/method_workspacesubscriptioncreateorupdate.go @@ -38,6 +38,7 @@ func (o WorkspaceSubscriptionCreateOrUpdateOperationOptions) ToHeaders() *client func (o WorkspaceSubscriptionCreateOrUpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -86,7 +87,6 @@ func (c SubscriptionClient) WorkspaceSubscriptionCreateOrUpdate(ctx context.Cont var model SubscriptionContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/method_workspacesubscriptiondelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/subscription/method_workspacesubscriptiondelete.go similarity index 99% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/method_workspacesubscriptiondelete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/subscription/method_workspacesubscriptiondelete.go index ae93f99c9799..596c10eb7d8a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/method_workspacesubscriptiondelete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/subscription/method_workspacesubscriptiondelete.go @@ -35,6 +35,7 @@ func (o WorkspaceSubscriptionDeleteOperationOptions) ToHeaders() *client.Headers func (o WorkspaceSubscriptionDeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/method_workspacesubscriptionget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/subscription/method_workspacesubscriptionget.go similarity index 99% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/method_workspacesubscriptionget.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/subscription/method_workspacesubscriptionget.go index 37ea5ebe5166..8dae472a92ca 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/method_workspacesubscriptionget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/subscription/method_workspacesubscriptionget.go @@ -45,7 +45,6 @@ func (c SubscriptionClient) WorkspaceSubscriptionGet(ctx context.Context, id Wor var model SubscriptionContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/method_workspacesubscriptiongetentitytag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/subscription/method_workspacesubscriptiongetentitytag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/method_workspacesubscriptiongetentitytag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/subscription/method_workspacesubscriptiongetentitytag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/method_workspacesubscriptionlist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/subscription/method_workspacesubscriptionlist.go similarity index 99% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/method_workspacesubscriptionlist.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/subscription/method_workspacesubscriptionlist.go index ae68c7033936..3204ff8b3a1b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/method_workspacesubscriptionlist.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/subscription/method_workspacesubscriptionlist.go @@ -41,6 +41,7 @@ func (o WorkspaceSubscriptionListOperationOptions) ToHeaders() *client.Headers { func (o WorkspaceSubscriptionListOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/method_workspacesubscriptionlistsecrets.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/subscription/method_workspacesubscriptionlistsecrets.go similarity index 99% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/method_workspacesubscriptionlistsecrets.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/subscription/method_workspacesubscriptionlistsecrets.go index 5aaf63656bd7..6fe9aca98805 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/method_workspacesubscriptionlistsecrets.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/subscription/method_workspacesubscriptionlistsecrets.go @@ -46,7 +46,6 @@ func (c SubscriptionClient) WorkspaceSubscriptionListSecrets(ctx context.Context var model SubscriptionKeysContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/method_workspacesubscriptionregenerateprimarykey.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/subscription/method_workspacesubscriptionregenerateprimarykey.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/method_workspacesubscriptionregenerateprimarykey.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/subscription/method_workspacesubscriptionregenerateprimarykey.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/method_workspacesubscriptionregeneratesecondarykey.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/subscription/method_workspacesubscriptionregeneratesecondarykey.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/method_workspacesubscriptionregeneratesecondarykey.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/subscription/method_workspacesubscriptionregeneratesecondarykey.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/method_workspacesubscriptionupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/subscription/method_workspacesubscriptionupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/method_workspacesubscriptionupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/subscription/method_workspacesubscriptionupdate.go index e8866e97051e..a71cb2ab2b4e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/method_workspacesubscriptionupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/subscription/method_workspacesubscriptionupdate.go @@ -38,6 +38,7 @@ func (o WorkspaceSubscriptionUpdateOperationOptions) ToHeaders() *client.Headers func (o WorkspaceSubscriptionUpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -85,7 +86,6 @@ func (c SubscriptionClient) WorkspaceSubscriptionUpdate(ctx context.Context, id var model SubscriptionContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/model_subscriptioncontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/subscription/model_subscriptioncontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/model_subscriptioncontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/subscription/model_subscriptioncontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/model_subscriptioncontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/subscription/model_subscriptioncontractproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/model_subscriptioncontractproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/subscription/model_subscriptioncontractproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/model_subscriptioncreateparameterproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/subscription/model_subscriptioncreateparameterproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/model_subscriptioncreateparameterproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/subscription/model_subscriptioncreateparameterproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/model_subscriptioncreateparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/subscription/model_subscriptioncreateparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/model_subscriptioncreateparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/subscription/model_subscriptioncreateparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/model_subscriptionkeyscontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/subscription/model_subscriptionkeyscontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/model_subscriptionkeyscontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/subscription/model_subscriptionkeyscontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/model_subscriptionupdateparameterproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/subscription/model_subscriptionupdateparameterproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/model_subscriptionupdateparameterproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/subscription/model_subscriptionupdateparameterproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/model_subscriptionupdateparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/subscription/model_subscriptionupdateparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/model_subscriptionupdateparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/subscription/model_subscriptionupdateparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/subscription/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/subscription/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/subscription/version.go similarity index 66% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/subscription/version.go index 6604299ad8a2..7bd5ad5d3161 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/subscription/version.go @@ -3,8 +3,8 @@ package subscription // 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-05-01-preview" +const defaultApiVersion = "2024-05-01" func userAgent() string { - return "hashicorp/go-azure-sdk/subscription/2022-08-01" + return "hashicorp/go-azure-sdk/subscription/2024-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tag/README.md similarity index 89% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tag/README.md index 1f24e1d2c9c3..2c6b7aafde10 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tag/README.md @@ -1,15 +1,17 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag` Documentation -The `tag` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2023-05-01-preview`). +## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tag` Documentation + +The `tag` SDK allows for interaction with Azure Resource Manager `apimanagement` (API Version `2024-05-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/apimanagement/2023-05-01-preview/tag" +import "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tag" ``` + ### Client Initialization ```go @@ -17,6 +19,7 @@ client := tag.NewTagClientWithBaseURI("https://management.azure.com") client.Client.Authorizer = authorizer ``` + ### Example Usage: `TagClient.CreateOrUpdate` ```go @@ -37,6 +40,7 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `TagClient.Delete` ```go @@ -52,6 +56,7 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `TagClient.Get` ```go @@ -67,6 +72,7 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `TagClient.GetEntityState` ```go @@ -82,6 +88,7 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `TagClient.ListByService` ```go @@ -98,6 +105,7 @@ for _, item := range items { } ``` + ### Example Usage: `TagClient.Update` ```go @@ -118,11 +126,12 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `TagClient.WorkspaceTagCreateOrUpdate` ```go ctx := context.TODO() -id := tag.NewWorkspaceTagID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "tagIdValue") +id := tag.NewWorkspaceTagID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "tagId") payload := tag.TagCreateUpdateParameters{ // ... @@ -138,11 +147,12 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `TagClient.WorkspaceTagDelete` ```go ctx := context.TODO() -id := tag.NewWorkspaceTagID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "tagIdValue") +id := tag.NewWorkspaceTagID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "tagId") read, err := client.WorkspaceTagDelete(ctx, id, tag.DefaultWorkspaceTagDeleteOperationOptions()) if err != nil { @@ -153,11 +163,12 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `TagClient.WorkspaceTagGet` ```go ctx := context.TODO() -id := tag.NewWorkspaceTagID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "tagIdValue") +id := tag.NewWorkspaceTagID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "tagId") read, err := client.WorkspaceTagGet(ctx, id) if err != nil { @@ -168,11 +179,12 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `TagClient.WorkspaceTagGetEntityState` ```go ctx := context.TODO() -id := tag.NewWorkspaceTagID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "tagIdValue") +id := tag.NewWorkspaceTagID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "tagId") read, err := client.WorkspaceTagGetEntityState(ctx, id) if err != nil { @@ -183,11 +195,12 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `TagClient.WorkspaceTagListByService` ```go ctx := context.TODO() -id := tag.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue") +id := tag.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId") // alternatively `client.WorkspaceTagListByService(ctx, id, tag.DefaultWorkspaceTagListByServiceOperationOptions())` can be used to do batched pagination items, err := client.WorkspaceTagListByServiceComplete(ctx, id, tag.DefaultWorkspaceTagListByServiceOperationOptions()) @@ -199,11 +212,12 @@ for _, item := range items { } ``` + ### Example Usage: `TagClient.WorkspaceTagUpdate` ```go ctx := context.TODO() -id := tag.NewWorkspaceTagID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "tagIdValue") +id := tag.NewWorkspaceTagID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "tagId") payload := tag.TagCreateUpdateParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tag/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tag/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/id_service.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tag/id_service.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/id_service.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tag/id_service.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/id_tag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tag/id_tag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/id_tag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tag/id_tag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/id_workspace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tag/id_workspace.go similarity index 94% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/id_workspace.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tag/id_workspace.go index 3028a0894dc7..f2a557e8167e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/id_workspace.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tag/id_workspace.go @@ -44,7 +44,7 @@ func ParseWorkspaceID(input string) (*WorkspaceId, error) { } id := WorkspaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseWorkspaceIDInsensitively(input string) (*WorkspaceId, error) { } id := WorkspaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id WorkspaceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), - resourceids.UserSpecifiedSegment("workspaceId", "workspaceIdValue"), + resourceids.UserSpecifiedSegment("workspaceId", "workspaceId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/id_workspacetag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tag/id_workspacetag.go similarity index 94% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/id_workspacetag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tag/id_workspacetag.go index 22e3dc2edb3e..19a645ec108d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/id_workspacetag.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tag/id_workspacetag.go @@ -46,7 +46,7 @@ func ParseWorkspaceTagID(input string) (*WorkspaceTagId, error) { } id := WorkspaceTagId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseWorkspaceTagIDInsensitively(input string) (*WorkspaceTagId, error) { } id := WorkspaceTagId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id WorkspaceTagId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), - resourceids.UserSpecifiedSegment("workspaceId", "workspaceIdValue"), + resourceids.UserSpecifiedSegment("workspaceId", "workspaceId"), resourceids.StaticSegment("staticTags", "tags", "tags"), - resourceids.UserSpecifiedSegment("tagId", "tagIdValue"), + resourceids.UserSpecifiedSegment("tagId", "tagId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tag/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tag/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tag/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tag/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tag/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tag/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/method_getentitystate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tag/method_getentitystate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/method_getentitystate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tag/method_getentitystate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/method_listbyservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tag/method_listbyservice.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/method_listbyservice.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tag/method_listbyservice.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tag/method_update.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/method_update.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tag/method_update.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/method_workspacetagcreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tag/method_workspacetagcreateorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/method_workspacetagcreateorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tag/method_workspacetagcreateorupdate.go index 43dd91a03275..7a942b3509e8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/method_workspacetagcreateorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tag/method_workspacetagcreateorupdate.go @@ -36,6 +36,7 @@ func (o WorkspaceTagCreateOrUpdateOperationOptions) ToHeaders() *client.Headers func (o WorkspaceTagCreateOrUpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -79,7 +80,6 @@ func (c TagClient) WorkspaceTagCreateOrUpdate(ctx context.Context, id WorkspaceT var model TagContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/method_workspacetagdelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tag/method_workspacetagdelete.go similarity index 99% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/method_workspacetagdelete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tag/method_workspacetagdelete.go index c702a5f54dce..8ec36b5031b2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/method_workspacetagdelete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tag/method_workspacetagdelete.go @@ -35,6 +35,7 @@ func (o WorkspaceTagDeleteOperationOptions) ToHeaders() *client.Headers { func (o WorkspaceTagDeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/method_workspacetagget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tag/method_workspacetagget.go similarity index 99% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/method_workspacetagget.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tag/method_workspacetagget.go index 70647072c3e8..4fbedecfe189 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/method_workspacetagget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tag/method_workspacetagget.go @@ -45,7 +45,6 @@ func (c TagClient) WorkspaceTagGet(ctx context.Context, id WorkspaceTagId) (resu var model TagContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/method_workspacetaggetentitystate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tag/method_workspacetaggetentitystate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/method_workspacetaggetentitystate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tag/method_workspacetaggetentitystate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/method_workspacetaglistbyservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tag/method_workspacetaglistbyservice.go similarity index 99% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/method_workspacetaglistbyservice.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tag/method_workspacetaglistbyservice.go index e41c7e2b252a..b401db29d280 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/method_workspacetaglistbyservice.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tag/method_workspacetaglistbyservice.go @@ -42,6 +42,7 @@ func (o WorkspaceTagListByServiceOperationOptions) ToHeaders() *client.Headers { func (o WorkspaceTagListByServiceOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/method_workspacetagupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tag/method_workspacetagupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/method_workspacetagupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tag/method_workspacetagupdate.go index 0d23c5923a8c..2a4a2f560a72 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/method_workspacetagupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tag/method_workspacetagupdate.go @@ -36,6 +36,7 @@ func (o WorkspaceTagUpdateOperationOptions) ToHeaders() *client.Headers { func (o WorkspaceTagUpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -78,7 +79,6 @@ func (c TagClient) WorkspaceTagUpdate(ctx context.Context, id WorkspaceTagId, in var model TagContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/model_tagcontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tag/model_tagcontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/model_tagcontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tag/model_tagcontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/model_tagcontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tag/model_tagcontractproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/model_tagcontractproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tag/model_tagcontractproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/model_tagcreateupdateparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tag/model_tagcreateupdateparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/model_tagcreateupdateparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tag/model_tagcreateupdateparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tag/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tag/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tag/version.go similarity index 67% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tag/version.go index 27b8f46112d2..7fe7a7486f3a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tag/version.go @@ -3,8 +3,8 @@ package tag // 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-05-01-preview" +const defaultApiVersion = "2024-05-01" func userAgent() string { - return "hashicorp/go-azure-sdk/tag/2022-08-01" + return "hashicorp/go-azure-sdk/tag/2024-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tenantaccess/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tenantaccess/README.md similarity index 94% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tenantaccess/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tenantaccess/README.md index d5493c8dbd5e..735bb15a97ec 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tenantaccess/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tenantaccess/README.md @@ -1,15 +1,17 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tenantaccess` Documentation -The `tenantaccess` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2023-05-01-preview`). +## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tenantaccess` Documentation + +The `tenantaccess` SDK allows for interaction with Azure Resource Manager `apimanagement` (API Version `2024-05-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/apimanagement/2023-05-01-preview/tenantaccess" +import "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tenantaccess" ``` + ### Client Initialization ```go @@ -17,6 +19,7 @@ client := tenantaccess.NewTenantAccessClientWithBaseURI("https://management.azur client.Client.Authorizer = authorizer ``` + ### Example Usage: `TenantAccessClient.Create` ```go @@ -37,6 +40,7 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `TenantAccessClient.Get` ```go @@ -52,6 +56,7 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `TenantAccessClient.GetEntityTag` ```go @@ -67,6 +72,7 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `TenantAccessClient.ListByService` ```go @@ -83,6 +89,7 @@ for _, item := range items { } ``` + ### Example Usage: `TenantAccessClient.ListSecrets` ```go @@ -98,6 +105,7 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `TenantAccessClient.RegeneratePrimaryKey` ```go @@ -113,6 +121,7 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `TenantAccessClient.RegenerateSecondaryKey` ```go @@ -128,6 +137,7 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `TenantAccessClient.Update` ```go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tenantaccess/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tenantaccess/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tenantaccess/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tenantaccess/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tenantaccess/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tenantaccess/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tenantaccess/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tenantaccess/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tenantaccess/id_access.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tenantaccess/id_access.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tenantaccess/id_access.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tenantaccess/id_access.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tenantaccess/id_service.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tenantaccess/id_service.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tenantaccess/id_service.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tenantaccess/id_service.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tenantaccess/method_create.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tenantaccess/method_create.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tenantaccess/method_create.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tenantaccess/method_create.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tenantaccess/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tenantaccess/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tenantaccess/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tenantaccess/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tenantaccess/method_getentitytag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tenantaccess/method_getentitytag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tenantaccess/method_getentitytag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tenantaccess/method_getentitytag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tenantaccess/method_listbyservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tenantaccess/method_listbyservice.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tenantaccess/method_listbyservice.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tenantaccess/method_listbyservice.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tenantaccess/method_listsecrets.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tenantaccess/method_listsecrets.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tenantaccess/method_listsecrets.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tenantaccess/method_listsecrets.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tenantaccess/method_regenerateprimarykey.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tenantaccess/method_regenerateprimarykey.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tenantaccess/method_regenerateprimarykey.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tenantaccess/method_regenerateprimarykey.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tenantaccess/method_regeneratesecondarykey.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tenantaccess/method_regeneratesecondarykey.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tenantaccess/method_regeneratesecondarykey.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tenantaccess/method_regeneratesecondarykey.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tenantaccess/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tenantaccess/method_update.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tenantaccess/method_update.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tenantaccess/method_update.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tenantaccess/model_accessinformationcontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tenantaccess/model_accessinformationcontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tenantaccess/model_accessinformationcontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tenantaccess/model_accessinformationcontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tenantaccess/model_accessinformationcontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tenantaccess/model_accessinformationcontractproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tenantaccess/model_accessinformationcontractproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tenantaccess/model_accessinformationcontractproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tenantaccess/model_accessinformationcreateparameterproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tenantaccess/model_accessinformationcreateparameterproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tenantaccess/model_accessinformationcreateparameterproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tenantaccess/model_accessinformationcreateparameterproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tenantaccess/model_accessinformationcreateparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tenantaccess/model_accessinformationcreateparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tenantaccess/model_accessinformationcreateparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tenantaccess/model_accessinformationcreateparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tenantaccess/model_accessinformationsecretscontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tenantaccess/model_accessinformationsecretscontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tenantaccess/model_accessinformationsecretscontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tenantaccess/model_accessinformationsecretscontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tenantaccess/model_accessinformationupdateparameterproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tenantaccess/model_accessinformationupdateparameterproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tenantaccess/model_accessinformationupdateparameterproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tenantaccess/model_accessinformationupdateparameterproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tenantaccess/model_accessinformationupdateparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tenantaccess/model_accessinformationupdateparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tenantaccess/model_accessinformationupdateparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tenantaccess/model_accessinformationupdateparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tenantaccess/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tenantaccess/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tenantaccess/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tenantaccess/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tenantaccess/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tenantaccess/version.go similarity index 66% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tenantaccess/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tenantaccess/version.go index 14078132dfa7..08b161d0ade1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tenantaccess/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tenantaccess/version.go @@ -3,8 +3,8 @@ package tenantaccess // 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-05-01-preview" +const defaultApiVersion = "2024-05-01" func userAgent() string { - return "hashicorp/go-azure-sdk/tenantaccess/2022-08-01" + return "hashicorp/go-azure-sdk/tenantaccess/2024-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/user/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/user/README.md similarity index 93% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/user/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/user/README.md index 6edc3a1181ca..4c8796a0b9cf 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/user/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/user/README.md @@ -1,15 +1,17 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/user` Documentation -The `user` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2023-05-01-preview`). +## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/user` Documentation + +The `user` SDK allows for interaction with Azure Resource Manager `apimanagement` (API Version `2024-05-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/apimanagement/2023-05-01-preview/user" +import "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/user" ``` + ### Client Initialization ```go @@ -17,6 +19,7 @@ client := user.NewUserClientWithBaseURI("https://management.azure.com") client.Client.Authorizer = authorizer ``` + ### Example Usage: `UserClient.CreateOrUpdate` ```go @@ -37,6 +40,7 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `UserClient.Delete` ```go @@ -48,6 +52,7 @@ if err := client.DeleteThenPoll(ctx, id, user.DefaultDeleteOperationOptions()); } ``` + ### Example Usage: `UserClient.Get` ```go @@ -63,6 +68,7 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `UserClient.GetEntityTag` ```go @@ -78,6 +84,7 @@ if model := read.Model; model != nil { } ``` + ### Example Usage: `UserClient.ListByService` ```go @@ -94,6 +101,7 @@ for _, item := range items { } ``` + ### Example Usage: `UserClient.Update` ```go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/user/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/user/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/user/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/user/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/user/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/user/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/user/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/user/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/user/id_service.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/user/id_service.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/user/id_service.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/user/id_service.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/user/id_user.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/user/id_user.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/user/id_user.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/user/id_user.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/user/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/user/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/user/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/user/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/user/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/user/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/user/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/user/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/user/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/user/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/user/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/user/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/user/method_getentitytag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/user/method_getentitytag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/user/method_getentitytag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/user/method_getentitytag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/user/method_listbyservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/user/method_listbyservice.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/user/method_listbyservice.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/user/method_listbyservice.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/user/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/user/method_update.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/user/method_update.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/user/method_update.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/user/model_groupcontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/user/model_groupcontractproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/user/model_groupcontractproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/user/model_groupcontractproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/user/model_usercontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/user/model_usercontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/user/model_usercontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/user/model_usercontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/user/model_usercontractproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/user/model_usercontractproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/user/model_usercontractproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/user/model_usercontractproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/user/model_usercreateparameterproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/user/model_usercreateparameterproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/user/model_usercreateparameterproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/user/model_usercreateparameterproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/user/model_usercreateparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/user/model_usercreateparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/user/model_usercreateparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/user/model_usercreateparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/user/model_useridentitycontract.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/user/model_useridentitycontract.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/user/model_useridentitycontract.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/user/model_useridentitycontract.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/user/model_userupdateparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/user/model_userupdateparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/user/model_userupdateparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/user/model_userupdateparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/user/model_userupdateparametersproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/user/model_userupdateparametersproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/user/model_userupdateparametersproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/user/model_userupdateparametersproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/user/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/user/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/user/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/user/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/user/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/user/version.go similarity index 67% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/user/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/user/version.go index 5a1d1fbc5477..7e1bb522e9e3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/user/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/user/version.go @@ -3,8 +3,8 @@ package user // 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-05-01-preview" +const defaultApiVersion = "2024-05-01" func userAgent() string { - return "hashicorp/go-azure-sdk/user/2022-08-01" + return "hashicorp/go-azure-sdk/user/2024-05-01" } diff --git a/vendor/modules.txt b/vendor/modules.txt index a8161c736356..9804348508df 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -161,53 +161,53 @@ github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2023-03-01/p github.com/hashicorp/go-azure-sdk/resource-manager/analysisservices/2017-08-01 github.com/hashicorp/go-azure-sdk/resource-manager/analysisservices/2017-08-01/analysisservices github.com/hashicorp/go-azure-sdk/resource-manager/analysisservices/2017-08-01/servers -github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/api -github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic -github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice -github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperation -github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy -github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apioperationtag -github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apipolicy -github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apirelease -github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apischema -github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitag -github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apitagdescription -github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionset -github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apiversionsets -github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/authorizationserver -github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/backend -github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/cache -github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/certificate -github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/delegationsettings -github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/deletedservice -github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/diagnostic -github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/emailtemplates -github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gateway -github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayapi -github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewaycertificateauthority -github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/gatewayhostnameconfiguration -github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/group -github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/groupuser -github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/identityprovider -github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/logger -github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/namedvalue -github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail -github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser -github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/openidconnectprovider -github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policy -github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/policyfragment -github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/product -github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productapi -github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productgroup -github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/productpolicy -github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/producttag -github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/schema -github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signinsettings -github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/signupsettings -github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription -github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tag -github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/tenantaccess -github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/user +github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/api +github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apidiagnostic +github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apimanagementservice +github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperation +github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperationpolicy +github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apioperationtag +github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apipolicy +github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apirelease +github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apischema +github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apitag +github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apitagdescription +github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apiversionset +github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/apiversionsets +github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/authorizationserver +github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/backend +github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/cache +github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/certificate +github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/delegationsettings +github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/deletedservice +github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/diagnostic +github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/emailtemplates +github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gateway +github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewayapi +github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewaycertificateauthority +github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/gatewayhostnameconfiguration +github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/group +github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/groupuser +github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/identityprovider +github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/logger +github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/namedvalue +github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/notificationrecipientemail +github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/notificationrecipientuser +github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/openidconnectprovider +github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/policy +github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/policyfragment +github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/product +github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productapi +github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productgroup +github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/productpolicy +github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/producttag +github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/schema +github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/signinsettings +github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/signupsettings +github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/subscription +github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tag +github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/tenantaccess +github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/user github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/configurationstores github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/deletedconfigurationstores github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/operations