diff --git a/src/apic-extension/HISTORY.rst b/src/apic-extension/HISTORY.rst index 2a891edbf70..701e1f3684d 100644 --- a/src/apic-extension/HISTORY.rst +++ b/src/apic-extension/HISTORY.rst @@ -2,6 +2,9 @@ Release History =============== +1.2.0b2 +++++++++++++++++++ +* Remove msrestazure dependency 1.2.0b1 ++++++++++++++++++ diff --git a/src/apic-extension/azext_apic_extension/command_patches.py b/src/apic-extension/azext_apic_extension/command_patches.py index 6c05c01b737..733c13859d7 100644 --- a/src/apic-extension/azext_apic_extension/command_patches.py +++ b/src/apic-extension/azext_apic_extension/command_patches.py @@ -57,7 +57,7 @@ from azure.cli.core.aaz._arg import AAZStrArg, AAZListArg, AAZResourceIdArg from azure.cli.core.aaz import register_command -from msrestazure.tools import is_valid_resource_id +from azure.mgmt.core.tools import is_valid_resource_id class DefaultWorkspaceParameter: diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_create_service.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_create_service.yaml index edb2ac4ddca..e22ae7c0083 100644 --- a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_create_service.yaml +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_create_service.yaml @@ -13,12 +13,12 @@ interactions: ParameterSetName: - -g --name User-Agent: - - AZURECLI/2.63.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.22631-SP0) + - AZURECLI/2.74.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clirg000001?api-version=2022-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clirg000001?api-version=2024-11-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001","name":"clirg000001","type":"Microsoft.Resources/resourceGroups","location":"eastus","tags":{"product":"azurecli","cause":"automation","test":"test_create_service","date":"2024-10-09T08:19:50Z","module":"apic-extension"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001","name":"clirg000001","type":"Microsoft.Resources/resourceGroups","location":"eastus","tags":{"product":"azurecli","cause":"automation","test":"test_create_service","date":"2025-06-11T05:51:43Z","module":"apic-extension"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -27,7 +27,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 09 Oct 2024 08:19:52 GMT + - Wed, 11 Jun 2025 05:51:54 GMT expires: - '-1' pragma: @@ -41,7 +41,7 @@ interactions: x-ms-ratelimit-remaining-subscription-global-reads: - '3749' x-msedge-ref: - - 'Ref A: E1F0A1E604FF44E2A4395A3C4FDBFC9E Ref B: MAA201060515029 Ref C: 2024-10-09T08:19:52Z' + - 'Ref A: 334FD7B65530400E9161079625FFE211 Ref B: MAA201060516035 Ref C: 2025-06-11T05:51:54Z' status: code: 200 message: OK @@ -63,23 +63,481 @@ interactions: ParameterSetName: - -g --name User-Agent: - - AZURECLI/2.63.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.22631-SP0) + - AZURECLI/2.74.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/cli000002?api-version=2024-03-01 response: body: - string: '{"type":"Microsoft.ApiCenter/services","location":"eastus","sku":{"name":"Free"},"properties":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/cli000002","name":"cli000002","tags":{},"systemData":{"createdAt":"2024-10-09T08:19:55.7865503Z","lastModifiedAt":"2024-10-09T08:19:55.7865422Z"}}' + string: '{"error":{"code":"MissingSubscriptionRegistration","message":"The subscription + is not registered to use namespace ''Microsoft.ApiCenter''. See https://aka.ms/rps-not-found + for how to register subscriptions.","details":[{"code":"MissingSubscriptionRegistration","target":"Microsoft.ApiCenter","message":"The + subscription is not registered to use namespace ''Microsoft.ApiCenter''. See + https://aka.ms/rps-not-found for how to register subscriptions."}]}}' + headers: + cache-control: + - no-cache + content-length: + - '448' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 11 Jun 2025 05:51:57 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-failure-cause: + - gateway + x-msedge-ref: + - 'Ref A: DA9B365EBBEF4C7A959CA0B9ABD0A7F7 Ref B: MAA201060515033 Ref C: 2025-06-11T05:51:55Z' + status: + code: 409 + message: Conflict +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - python-requests/2.32.3 + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ApiCenter/register?api-version=2016-02-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ApiCenter","namespace":"Microsoft.ApiCenter","authorizations":[{"applicationId":"a45c1cb0-6899-445e-8961-29576781c228","roleDefinitionId":"eb535636-6f68-45ec-903f-506493b326c2"},{"applicationId":"c3ca1a77-7a87-4dba-b8f8-eea115ae4573","roleDefinitionId":"eb535636-6f68-45ec-903f-506493b326c2"}],"resourceTypes":[{"resourceType":"services","locations":["East + US","West Europe","UK South","Central India","Australia East","France Central","Sweden + Central","Canada Central","Central US EUAP"],"apiVersions":["2024-06-01-preview","2024-03-15-preview","2024-03-01","2023-07-01-preview"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SystemAssignedResourceIdentity"},{"resourceType":"operations","locations":["East + US","Central US EUAP"],"apiVersions":["2024-06-01-preview","2024-03-15-preview","2024-03-01","2023-07-01-preview"]},{"resourceType":"deletedServices","locations":["East + US","West Europe","UK South","Central India","Australia East","France Central","Sweden + Central","Canada Central","Central US EUAP"],"apiVersions":["2024-06-01-preview","2024-03-15-preview"]},{"resourceType":"services/eventGridFilters","locations":["East + US","West Europe","UK South","Central India","Australia East","France Central","Sweden + Central","Canada Central","Central US EUAP"],"apiVersions":["2024-06-01-preview","2024-03-15-preview","2024-03-01","2023-07-01-preview"]}],"registrationState":"Registering"}' + headers: + cache-control: + - no-cache + content-length: + - '1503' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 11 Jun 2025 05:52:00 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: 75BB0021E0044D81A6232A5293BFCB54 Ref B: MAA201060515033 Ref C: 2025-06-11T05:51:58Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ApiCenter?api-version=2016-02-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ApiCenter","namespace":"Microsoft.ApiCenter","authorizations":[{"applicationId":"a45c1cb0-6899-445e-8961-29576781c228","roleDefinitionId":"eb535636-6f68-45ec-903f-506493b326c2"},{"applicationId":"c3ca1a77-7a87-4dba-b8f8-eea115ae4573","roleDefinitionId":"eb535636-6f68-45ec-903f-506493b326c2"}],"resourceTypes":[{"resourceType":"services","locations":["East + US","West Europe","UK South","Central India","Australia East","France Central","Sweden + Central","Canada Central","Central US EUAP"],"apiVersions":["2024-06-01-preview","2024-03-15-preview","2024-03-01","2023-07-01-preview"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SystemAssignedResourceIdentity"},{"resourceType":"operations","locations":["East + US","Central US EUAP"],"apiVersions":["2024-06-01-preview","2024-03-15-preview","2024-03-01","2023-07-01-preview"]},{"resourceType":"deletedServices","locations":["East + US","West Europe","UK South","Central India","Australia East","France Central","Sweden + Central","Canada Central","Central US EUAP"],"apiVersions":["2024-06-01-preview","2024-03-15-preview"]},{"resourceType":"services/eventGridFilters","locations":["East + US","West Europe","UK South","Central India","Australia East","France Central","Sweden + Central","Canada Central","Central US EUAP"],"apiVersions":["2024-06-01-preview","2024-03-15-preview","2024-03-01","2023-07-01-preview"]}],"registrationState":"Registering"}' + headers: + cache-control: + - no-cache + content-length: + - '1503' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 11 Jun 2025 05:52:10 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: C0C2972FCDDF48978E5DE77308C29C6F Ref B: MAA201060515033 Ref C: 2025-06-11T05:52:10Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ApiCenter?api-version=2016-02-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ApiCenter","namespace":"Microsoft.ApiCenter","authorizations":[{"applicationId":"a45c1cb0-6899-445e-8961-29576781c228","roleDefinitionId":"eb535636-6f68-45ec-903f-506493b326c2"},{"applicationId":"c3ca1a77-7a87-4dba-b8f8-eea115ae4573","roleDefinitionId":"eb535636-6f68-45ec-903f-506493b326c2"}],"resourceTypes":[{"resourceType":"services","locations":["East + US","West Europe","UK South","Central India","Australia East","France Central","Sweden + Central","Canada Central","Central US EUAP"],"apiVersions":["2024-06-01-preview","2024-03-15-preview","2024-03-01","2023-07-01-preview"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SystemAssignedResourceIdentity"},{"resourceType":"operations","locations":["East + US","Central US EUAP"],"apiVersions":["2024-06-01-preview","2024-03-15-preview","2024-03-01","2023-07-01-preview"]},{"resourceType":"deletedServices","locations":["East + US","West Europe","UK South","Central India","Australia East","France Central","Sweden + Central","Canada Central","Central US EUAP"],"apiVersions":["2024-06-01-preview","2024-03-15-preview"]},{"resourceType":"services/eventGridFilters","locations":["East + US","West Europe","UK South","Central India","Australia East","France Central","Sweden + Central","Canada Central","Central US EUAP"],"apiVersions":["2024-06-01-preview","2024-03-15-preview","2024-03-01","2023-07-01-preview"]}],"registrationState":"Registering"}' + headers: + cache-control: + - no-cache + content-length: + - '1503' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 11 Jun 2025 05:52:20 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 757420835CDB4665A25B0AF9FA3B5156 Ref B: MAA201060515033 Ref C: 2025-06-11T05:52:21Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ApiCenter?api-version=2016-02-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ApiCenter","namespace":"Microsoft.ApiCenter","authorizations":[{"applicationId":"a45c1cb0-6899-445e-8961-29576781c228","roleDefinitionId":"eb535636-6f68-45ec-903f-506493b326c2"},{"applicationId":"c3ca1a77-7a87-4dba-b8f8-eea115ae4573","roleDefinitionId":"eb535636-6f68-45ec-903f-506493b326c2"}],"resourceTypes":[{"resourceType":"services","locations":["East + US","West Europe","UK South","Central India","Australia East","France Central","Sweden + Central","Canada Central","Central US EUAP"],"apiVersions":["2024-06-01-preview","2024-03-15-preview","2024-03-01","2023-07-01-preview"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SystemAssignedResourceIdentity"},{"resourceType":"operations","locations":["East + US","Central US EUAP"],"apiVersions":["2024-06-01-preview","2024-03-15-preview","2024-03-01","2023-07-01-preview"]},{"resourceType":"deletedServices","locations":["East + US","West Europe","UK South","Central India","Australia East","France Central","Sweden + Central","Canada Central","Central US EUAP"],"apiVersions":["2024-06-01-preview","2024-03-15-preview"]},{"resourceType":"services/eventGridFilters","locations":["East + US","West Europe","UK South","Central India","Australia East","France Central","Sweden + Central","Canada Central","Central US EUAP"],"apiVersions":["2024-06-01-preview","2024-03-15-preview","2024-03-01","2023-07-01-preview"]}],"registrationState":"Registering"}' + headers: + cache-control: + - no-cache + content-length: + - '1503' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 11 Jun 2025 05:52:31 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: C9DBB33EED574B5EAE114D56C96504E0 Ref B: MAA201060515033 Ref C: 2025-06-11T05:52:31Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ApiCenter?api-version=2016-02-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ApiCenter","namespace":"Microsoft.ApiCenter","authorizations":[{"applicationId":"a45c1cb0-6899-445e-8961-29576781c228","roleDefinitionId":"eb535636-6f68-45ec-903f-506493b326c2"},{"applicationId":"c3ca1a77-7a87-4dba-b8f8-eea115ae4573","roleDefinitionId":"eb535636-6f68-45ec-903f-506493b326c2"}],"resourceTypes":[{"resourceType":"services","locations":["East + US","West Europe","UK South","Central India","Australia East","France Central","Sweden + Central","Canada Central","Central US EUAP"],"apiVersions":["2024-06-01-preview","2024-03-15-preview","2024-03-01","2023-07-01-preview"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SystemAssignedResourceIdentity"},{"resourceType":"operations","locations":["East + US","Central US EUAP"],"apiVersions":["2024-06-01-preview","2024-03-15-preview","2024-03-01","2023-07-01-preview"]},{"resourceType":"deletedServices","locations":["East + US","West Europe","UK South","Central India","Australia East","France Central","Sweden + Central","Canada Central","Central US EUAP"],"apiVersions":["2024-06-01-preview","2024-03-15-preview"]},{"resourceType":"services/eventGridFilters","locations":["East + US","West Europe","UK South","Central India","Australia East","France Central","Sweden + Central","Canada Central","Central US EUAP"],"apiVersions":["2024-06-01-preview","2024-03-15-preview","2024-03-01","2023-07-01-preview"]}],"registrationState":"Registering"}' + headers: + cache-control: + - no-cache + content-length: + - '1503' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 11 Jun 2025 05:52:41 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 845A00D800484C119CC22C3C5E29A51E Ref B: MAA201060515033 Ref C: 2025-06-11T05:52:41Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ApiCenter?api-version=2016-02-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ApiCenter","namespace":"Microsoft.ApiCenter","authorizations":[{"applicationId":"a45c1cb0-6899-445e-8961-29576781c228","roleDefinitionId":"eb535636-6f68-45ec-903f-506493b326c2"},{"applicationId":"c3ca1a77-7a87-4dba-b8f8-eea115ae4573","roleDefinitionId":"eb535636-6f68-45ec-903f-506493b326c2"}],"resourceTypes":[{"resourceType":"services","locations":["East + US","West Europe","UK South","Central India","Australia East","France Central","Sweden + Central","Canada Central","Central US EUAP"],"apiVersions":["2024-06-01-preview","2024-03-15-preview","2024-03-01","2023-07-01-preview"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SystemAssignedResourceIdentity"},{"resourceType":"operations","locations":["East + US","Central US EUAP"],"apiVersions":["2024-06-01-preview","2024-03-15-preview","2024-03-01","2023-07-01-preview"]},{"resourceType":"deletedServices","locations":["East + US","West Europe","UK South","Central India","Australia East","France Central","Sweden + Central","Canada Central","Central US EUAP"],"apiVersions":["2024-06-01-preview","2024-03-15-preview"]},{"resourceType":"services/eventGridFilters","locations":["East + US","West Europe","UK South","Central India","Australia East","France Central","Sweden + Central","Canada Central","Central US EUAP"],"apiVersions":["2024-06-01-preview","2024-03-15-preview","2024-03-01","2023-07-01-preview"]}],"registrationState":"Registering"}' + headers: + cache-control: + - no-cache + content-length: + - '1503' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 11 Jun 2025 05:52:51 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 6E5E1E1DC8504D748FE50CBF87820961 Ref B: MAA201060515033 Ref C: 2025-06-11T05:52:51Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ApiCenter?api-version=2016-02-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ApiCenter","namespace":"Microsoft.ApiCenter","authorizations":[{"applicationId":"a45c1cb0-6899-445e-8961-29576781c228","roleDefinitionId":"eb535636-6f68-45ec-903f-506493b326c2"},{"applicationId":"c3ca1a77-7a87-4dba-b8f8-eea115ae4573","roleDefinitionId":"eb535636-6f68-45ec-903f-506493b326c2"}],"resourceTypes":[{"resourceType":"services","locations":["East + US","West Europe","UK South","Central India","Australia East","France Central","Sweden + Central","Canada Central","Central US EUAP"],"apiVersions":["2024-06-01-preview","2024-03-15-preview","2024-03-01","2023-07-01-preview"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SystemAssignedResourceIdentity"},{"resourceType":"operations","locations":["East + US","Central US EUAP"],"apiVersions":["2024-06-01-preview","2024-03-15-preview","2024-03-01","2023-07-01-preview"]},{"resourceType":"deletedServices","locations":["East + US","West Europe","UK South","Central India","Australia East","France Central","Sweden + Central","Canada Central","Central US EUAP"],"apiVersions":["2024-06-01-preview","2024-03-15-preview"]},{"resourceType":"services/eventGridFilters","locations":["East + US","West Europe","UK South","Central India","Australia East","France Central","Sweden + Central","Canada Central","Central US EUAP"],"apiVersions":["2024-06-01-preview","2024-03-15-preview","2024-03-01","2023-07-01-preview"]}],"registrationState":"Registering"}' + headers: + cache-control: + - no-cache + content-length: + - '1503' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 11 Jun 2025 05:53:01 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 4C69426437B640B8AED5EC2EC5D9D0E8 Ref B: MAA201060515033 Ref C: 2025-06-11T05:53:02Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ApiCenter?api-version=2016-02-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ApiCenter","namespace":"Microsoft.ApiCenter","authorizations":[{"applicationId":"a45c1cb0-6899-445e-8961-29576781c228","roleDefinitionId":"eb535636-6f68-45ec-903f-506493b326c2"},{"applicationId":"c3ca1a77-7a87-4dba-b8f8-eea115ae4573","roleDefinitionId":"eb535636-6f68-45ec-903f-506493b326c2"}],"resourceTypes":[{"resourceType":"services","locations":["East + US","West Europe","UK South","Central India","Australia East","France Central","Sweden + Central","Canada Central","Central US EUAP"],"apiVersions":["2024-06-01-preview","2024-03-15-preview","2024-03-01","2023-07-01-preview"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SystemAssignedResourceIdentity"},{"resourceType":"operations","locations":["East + US","Central US EUAP"],"apiVersions":["2024-06-01-preview","2024-03-15-preview","2024-03-01","2023-07-01-preview"]},{"resourceType":"deletedServices","locations":["East + US","West Europe","UK South","Central India","Australia East","France Central","Sweden + Central","Canada Central","Central US EUAP"],"apiVersions":["2024-06-01-preview","2024-03-15-preview"]},{"resourceType":"services/eventGridFilters","locations":["East + US","West Europe","UK South","Central India","Australia East","France Central","Sweden + Central","Canada Central","Central US EUAP"],"apiVersions":["2024-06-01-preview","2024-03-15-preview","2024-03-01","2023-07-01-preview"]}],"registrationState":"Registered"}' + headers: + cache-control: + - no-cache + content-length: + - '1502' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 11 Jun 2025 05:53:11 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 53F68AD66F7D4DE3B9351DB21A36CB3C Ref B: MAA201060515033 Ref C: 2025-06-11T05:53:12Z' + status: + code: 200 + message: OK +- request: + body: '{"location": "eastus", "sku": {"name": "Free"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic create + Connection: + - keep-alive + Content-Length: + - '47' + Content-Type: + - application/json + ParameterSetName: + - -g --name + User-Agent: + - AZURECLI/2.74.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/cli000002?api-version=2024-03-01 + response: + body: + string: '{"type":"Microsoft.ApiCenter/services","location":"eastus","sku":{"name":"Free"},"properties":{"portalHostname":"cli000002.portal.eastus.azure-apicenter.ms","provisioningState":"Succeeded"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/cli000002","name":"cli000002","tags":{},"systemData":{"createdAt":"2025-06-11T05:53:16.0092843Z","lastModifiedAt":"2025-06-11T05:53:16.0092621Z"}}' headers: api-supported-versions: - - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview, 2024-06-01-preview cache-control: - no-cache content-length: - - '367' + - '460' content-type: - application/json; charset=utf-8 date: - - Wed, 09 Oct 2024 08:19:55 GMT + - Wed, 11 Jun 2025 05:53:15 GMT expires: - '-1' pragma: @@ -92,12 +550,14 @@ interactions: - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-operation-identifier: + - tenantId=b5ee6c06-c2c2-4e3c-8606-5f170cee077a,objectId=9aec9bf7-7066-4c57-bc6d-3bc7935e826d/southeastasia/df311fb3-e282-4dd3-b012-4e90710611dc x-ms-ratelimit-remaining-subscription-global-writes: - '2999' x-ms-ratelimit-remaining-subscription-writes: - '199' x-msedge-ref: - - 'Ref A: 933740399FE74B248F4FE134B5F6F17F Ref B: MAA201060513049 Ref C: 2024-10-09T08:19:52Z' + - 'Ref A: 27D429667B2843C6A2C354801A6AA4FA Ref B: MAA201060515033 Ref C: 2025-06-11T05:53:12Z' x-powered-by: - ASP.NET status: diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_create_service_multiple_times.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_create_service_multiple_times.yaml index a13d01f6406..e02fce84c83 100644 --- a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_create_service_multiple_times.yaml +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_create_service_multiple_times.yaml @@ -13,12 +13,12 @@ interactions: ParameterSetName: - -g --name User-Agent: - - AZURECLI/2.63.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.22631-SP0) + - AZURECLI/2.74.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clirg000001?api-version=2022-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clirg000001?api-version=2024-11-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001","name":"clirg000001","type":"Microsoft.Resources/resourceGroups","location":"eastus","tags":{"product":"azurecli","cause":"automation","test":"test_create_service_multiple_times","date":"2024-10-09T08:19:51Z","module":"apic-extension"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001","name":"clirg000001","type":"Microsoft.Resources/resourceGroups","location":"eastus","tags":{"product":"azurecli","cause":"automation","test":"test_create_service_multiple_times","date":"2025-06-11T05:51:43Z","module":"apic-extension"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -27,7 +27,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 09 Oct 2024 08:19:52 GMT + - Wed, 11 Jun 2025 05:51:58 GMT expires: - '-1' pragma: @@ -41,7 +41,7 @@ interactions: x-ms-ratelimit-remaining-subscription-global-reads: - '3749' x-msedge-ref: - - 'Ref A: B81526305E1B44C2890870B745FFC0CC Ref B: MAA201060514053 Ref C: 2024-10-09T08:19:52Z' + - 'Ref A: 1058C00286B94BA1A4A0D575300471D6 Ref B: MAA201060513021 Ref C: 2025-06-11T05:51:57Z' status: code: 200 message: OK @@ -63,23 +63,23 @@ interactions: ParameterSetName: - -g --name User-Agent: - - AZURECLI/2.63.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.22631-SP0) + - AZURECLI/2.74.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/cli000002?api-version=2024-03-01 response: body: - string: '{"type":"Microsoft.ApiCenter/services","location":"eastus","sku":{"name":"Free"},"properties":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/cli000002","name":"cli000002","tags":{},"systemData":{"createdAt":"2024-10-09T08:19:55.4203887Z","lastModifiedAt":"2024-10-09T08:19:55.4203806Z"}}' + string: '{"type":"Microsoft.ApiCenter/services","location":"eastus","sku":{"name":"Free"},"properties":{"portalHostname":"cli000002.portal.eastus.azure-apicenter.ms","provisioningState":"Succeeded"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/cli000002","name":"cli000002","tags":{},"systemData":{"createdAt":"2025-06-11T05:52:04.7126771Z","lastModifiedAt":"2025-06-11T05:52:04.7126597Z"}}' headers: api-supported-versions: - - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview, 2024-06-01-preview cache-control: - no-cache content-length: - - '367' + - '460' content-type: - application/json; charset=utf-8 date: - - Wed, 09 Oct 2024 08:19:54 GMT + - Wed, 11 Jun 2025 05:52:04 GMT expires: - '-1' pragma: @@ -92,12 +92,14 @@ interactions: - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-operation-identifier: + - tenantId=b5ee6c06-c2c2-4e3c-8606-5f170cee077a,objectId=9aec9bf7-7066-4c57-bc6d-3bc7935e826d/southeastasia/680de43d-1eec-4da4-bdd7-d9fe742a5dbc x-ms-ratelimit-remaining-subscription-global-writes: - '2999' x-ms-ratelimit-remaining-subscription-writes: - '199' x-msedge-ref: - - 'Ref A: D7DF8D9435BF4F61AF35AB32DA7CBD3E Ref B: MAA201060515051 Ref C: 2024-10-09T08:19:52Z' + - 'Ref A: 91D59B06B7B146C2A7E5B75C0A33E62B Ref B: MAA201060515023 Ref C: 2025-06-11T05:51:59Z' x-powered-by: - ASP.NET status: @@ -117,12 +119,12 @@ interactions: ParameterSetName: - -g --name User-Agent: - - AZURECLI/2.63.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.22631-SP0) + - AZURECLI/2.74.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clirg000001?api-version=2022-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clirg000001?api-version=2024-11-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001","name":"clirg000001","type":"Microsoft.Resources/resourceGroups","location":"eastus","tags":{"product":"azurecli","cause":"automation","test":"test_create_service_multiple_times","date":"2024-10-09T08:19:51Z","module":"apic-extension"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001","name":"clirg000001","type":"Microsoft.Resources/resourceGroups","location":"eastus","tags":{"product":"azurecli","cause":"automation","test":"test_create_service_multiple_times","date":"2025-06-11T05:51:43Z","module":"apic-extension"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -131,7 +133,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 09 Oct 2024 08:19:55 GMT + - Wed, 11 Jun 2025 05:52:06 GMT expires: - '-1' pragma: @@ -145,7 +147,7 @@ interactions: x-ms-ratelimit-remaining-subscription-global-reads: - '3749' x-msedge-ref: - - 'Ref A: B54B94F3A92E4E61AEEA5B8AB2C7ACAB Ref B: MAA201060513033 Ref C: 2024-10-09T08:19:56Z' + - 'Ref A: 129337E01C444AF8936567FC25821150 Ref B: MAA201060516035 Ref C: 2025-06-11T05:52:06Z' status: code: 200 message: OK @@ -167,23 +169,23 @@ interactions: ParameterSetName: - -g --name User-Agent: - - AZURECLI/2.63.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.22631-SP0) + - AZURECLI/2.74.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/cli000002?api-version=2024-03-01 response: body: - string: '{"type":"Microsoft.ApiCenter/services","location":"eastus","sku":{"name":"Free"},"properties":{"dataApiHostname":"cli000002.data.eastus.azure-apicenter.ms"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/cli000002","name":"cli000002","tags":{},"systemData":{"createdAt":"2024-10-09T08:19:55.4203887Z","lastModifiedAt":"2024-10-09T08:19:57.7452234Z"}}' + string: '{"type":"Microsoft.ApiCenter/services","location":"eastus","sku":{"name":"Free"},"properties":{"portalHostname":"cli000002.portal.eastus.azure-apicenter.ms","provisioningState":"Succeeded"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/cli000002","name":"cli000002","tags":{},"systemData":{"createdAt":"2025-06-11T05:52:04.7126771Z","lastModifiedAt":"2025-06-11T05:52:09.1757628Z"}}' headers: api-supported-versions: - - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview, 2024-06-01-preview cache-control: - no-cache content-length: - - '427' + - '460' content-type: - application/json; charset=utf-8 date: - - Wed, 09 Oct 2024 08:19:57 GMT + - Wed, 11 Jun 2025 05:52:08 GMT expires: - '-1' pragma: @@ -196,12 +198,14 @@ interactions: - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-operation-identifier: + - tenantId=b5ee6c06-c2c2-4e3c-8606-5f170cee077a,objectId=9aec9bf7-7066-4c57-bc6d-3bc7935e826d/indonesiacentral/2214c0eb-d6a9-4c5d-8e40-ebd148b81e75 x-ms-ratelimit-remaining-subscription-global-writes: - '2999' x-ms-ratelimit-remaining-subscription-writes: - '199' x-msedge-ref: - - 'Ref A: 29ED6214FC144CBBAFC2B3BEBB4DDC78 Ref B: MAA201060515017 Ref C: 2024-10-09T08:19:56Z' + - 'Ref A: F5D4EA3D2DAF43FC93391A9962A63079 Ref B: MAA201060513035 Ref C: 2025-06-11T05:52:07Z' x-powered-by: - ASP.NET status: diff --git a/src/apic-extension/setup.py b/src/apic-extension/setup.py index 0e51f851c38..e034f080062 100644 --- a/src/apic-extension/setup.py +++ b/src/apic-extension/setup.py @@ -10,7 +10,7 @@ # HISTORY.rst entry. -VERSION = '1.2.0b1' +VERSION = '1.2.0b2' # The full list of classifiers is available at # https://pypi.python.org/pypi?%3Aaction=list_classifiers